Hi
I am new to cgi and need a little help on where I am going wrong. I have the basic html form sat with my perl script and thankyou html file in a cgi-bin directory on the server as instructed by my server suppoirt team. I have set the permission to 775 as instructed (owner read-write-execute)
basic html form
<form action="/cgi-bin/formmail.pl" method="post">
<input type="hidden" name="recipient" value="webmaster@elizabeth-lewis.co.uk"/>
<input type="hidden" name="subject" value="basic cgi form"/>
<input type="hidden" name="required" value=""/>
<input type="hidden" name="redirect" value="thankyou.html"/><table>
<tr>
<td>What is your name:</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td>What is your email address:</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" /></td>
</tr>
</form>
I am using Matt Script Archive "formail.pl"
FormMail, Version 1.92, Matt Wright, mattw @scriptarchive. com
I have amended the following:
@referers = ('www.elizabeth-lewis.co.uk');
@recipients = &fill_recipients('^webmaster\@elizabeth-lewis\.co\.uk');
when I run the script from my webpage on the server, I get the following message:
Error: Bad/No Recipient
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients. More information on filling in recipient form fields and variables can be found in the README file.
As far as I can tell, I am doing everything right but I still the the same message.
Can anybody help?