I'm sure it's just something simple I'm not doing right, but here's the form I've made:
<form action="http://www.idahocountryproperties.net/cgi-bin/FormMail.pl" method="post" name="Let us Help You">
<input type="hidden" name="recipient" value="jessica@idahoweb.com"><input type="hidden" name="subject" value="Question from Idaho Country Properties"><input type="hidden" name="Property Listing Number" value="<?php echo $row[mls]; ?>"><input type="hidden" name="Location" value="<?php echo $row[location]; ?>"><input type="hidden" name="Price" value="<?php echo $row[price]; ?>"><input type="hidden" name="redirect" value="http://www.idahocountryproperties.net/thanks.php">
<table width="670" border="1" cellspacing="0" cellpadding="3" bgcolor="#eee8aa">
<tr>
<td colspan="2" bgcolor="#cb4927"><div align="center"><font size="+2"><b>Do you like this Property? Let us Help You<br></b></font></div></td>
</tr>
<tr>
<td bgcolor="#ffdead" width="300"><div align="right">Your Name:</div></td>
<td bgcolor="#ffdead"><input type="text" name="realname" size="24"></td>
</tr>
<tr>
<td bgcolor="#ffdead" width="300"><div align="right">How May I Contact You: </div></td>
<td bgcolor="#ffdead">Phone: <input type="checkbox" name="Contact by Phone" value="Yes"> Email: <input type="checkbox" name="Contact by Email" value="Yes"><br></td>
</tr>
<tr>
<td bgcolor="#ffdead" width="300"><div align="right">Your Phone Number:</div></td>
<td bgcolor="#ffdead"><input type="text" name="Phone Number" size="24"></td>
</tr>
<tr>
<td bgcolor="#ffdead" width="300"><div align="right">Your Email Address:</div></td>
<td bgcolor="#ffdead"><input type="text" name="email" size="24"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#ffdead"><div align="center">Comments or Questions:<textarea name="Questions or Comments" rows="4" cols="40"></textarea></div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#ffdead"><div align="center"><input type="submit" name="submit" value="Get More Information"> </div></td>
</tr>
</table>
</form>
I'm using Matt's FormMail.pl... the two things I needed to change were:
@referers = ('scriptarchive.com','www.idahocountryproperties.net','128.121.61.188');
@recipients = ('jessica@idahoweb.com');
I've been getting 2 different messages. The first tells me bad recipient/invalid email. That is when
@recipients = &fill_recipients('jessica@idahoweb.com');
Looking in Matt's help, when I want a specific email, it tells me to type it as:
@recipients = ('jessica@idahoweb.com');
when I do that, I get a 500 internal server error (and, yes, I'm chmoding properly)....
What's up with that?!
(hopefully I've been descriptive enough)
TIA
p.s.
if this helps at all, i looked up the error logs, and this is what i found:
[Fri Oct 31 17:27:43 2003] [error] [client 198.70.198.56] malformed header from script. Bad header=/home/ctryprops/dead.letter...: /home/ctryprops/www/cgi-bin/FormMail.pl
?! does anyone understand what that means?