Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I cant figure out why this isnt working. Maybe a fresh set of eyes will help:
[b]form.html[/b]Code: Select all
<form name="form1" method="post" action="mailer.php">
<INPUT TYPE="hidden" NAME="cgiemail-mailopt" VALUE="sync">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><font face="Verdana, Helvetica, Arial" size="2"><b>APPLICANT
BUSINESS INFORMATION</b></font></td>
</tr>
<tr>
<td width="40%"><font size="2" face="Verdana, Helvetica, Arial">Company
Legal Name:</font></td>
<td width="60%"><font size="2" face="Verdana, Helvetica, Arial">
<input name="Firm_Name" size="30">
<label>
<input type="submit" name="Submit" value="Submit">
</label>
</font></td>
</tr>
</table>
</form>MAILER.PHP
Code: Select all
<?
if (!isset($email)) {
header( "Location: http://www.url.com/form.html" );
}
elseif (empty($email)) {
header( "Location: http://www.url.com/mailer_error.html" );
}
else {
mail( "sales@url.com", "Web Inquiry from $name",
"Name: $name
Biz Name: $Firm_Name", "From: $realname <$email>");
header( "Location: http://www.url/mailer_thankyou.html" );
}
?>feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]