koolage
IS-IT--Management
- Jan 3, 2005
- 60
Thanks in advance for your time and consideration.
I have a form in html that calls on a php file to send an email to a certain address. that works fine.
you can see a sample on the form works great from that site, however at another ISP(which I cannot share what ISP, yet)it does not work properly. it sends the email but no data entered.
the code for the html page is this:
<form name="form1" method="post" action="contact.php">
<p><font face="Palatino Linotype">Name:</font>
<input type="text" name="name" size="30">
<br>
<font face="Palatino Linotype"><br>
Email Address: </font>
<input type="text" name="email" size="30">
<br>
<font face="Palatino Linotype"><br>
Phone Number: </font>
<input type="text" name="phone" size="15">
<br>
<font face="Palatino Linotype"><br>
Station Affiliate:</font>
<input type="text" name="affliate" size="10"> <br>
<br>
<font face="Palatino Linotype">City/State: </font>
<input type="text" name="city" size="30">
<br>
<font face="Palatino Linotype"><br>
Best time to contact: </font>
<select size="1" name="time">
<option selected>Select</option>
<option>8am - 12pm</option>
<option>12pm - 4pm</option>
<option>4pm - 8pm</option>
<option>after 8pm</option>
</select>
<br>
<font face="Palatino Linotype"><br>
Budget: </font>
<input type="text" name="budget" size="7" maxlength="15">
<br>
<font face="Palatino Linotype"><br>
Additional
Information:</font><br>
<textarea name="info" rows="5" cols="30" wrap="VIRTUAL"></textarea>
<br>
</font></p>
<p>
<font color="#800000">
<input type="submit" name="submit_mail" value="Submit">
<input type="reset" value="Reset" name="B2"> </font>
</p>
</form>
the code for the php file is this:
<?php
if ($submit_mail = "Submit"){
$body = "Name: ".$name."\n\n\n";
$body .= "Phone Number:\n".$phone."\n\n\n";
$body .= "Station Affliate:\n".$affliate."\n\n\n";
$body .= "City & State:\n".$city."\n\n\n";
$body .= "Best time to call:\n".$time."\n\n\n";
$body .= "Budget:\n".$budget."\n\n\n";
$body .= "Additional Information:\n".$info."\n\n\n";
$subject="CONTACT INFO FROM JIMMILLERVOICEOVERS";
$header="From: ".$email."\r\n";
mail("me@aol.com", $subject, $body, $header);
mail("me@aol.com", $subject, $body, $header);
header("Location: sentmail.html");
}
?>
I'm not sure what they are running on the server that this is on.
I'm trying to get it to work with Win2K3 and IIS6.0
any help would be appreciated.
~koolage
I have a form in html that calls on a php file to send an email to a certain address. that works fine.
you can see a sample on the form works great from that site, however at another ISP(which I cannot share what ISP, yet)it does not work properly. it sends the email but no data entered.
the code for the html page is this:
<form name="form1" method="post" action="contact.php">
<p><font face="Palatino Linotype">Name:</font>
<input type="text" name="name" size="30">
<br>
<font face="Palatino Linotype"><br>
Email Address: </font>
<input type="text" name="email" size="30">
<br>
<font face="Palatino Linotype"><br>
Phone Number: </font>
<input type="text" name="phone" size="15">
<br>
<font face="Palatino Linotype"><br>
Station Affiliate:</font>
<input type="text" name="affliate" size="10"> <br>
<br>
<font face="Palatino Linotype">City/State: </font>
<input type="text" name="city" size="30">
<br>
<font face="Palatino Linotype"><br>
Best time to contact: </font>
<select size="1" name="time">
<option selected>Select</option>
<option>8am - 12pm</option>
<option>12pm - 4pm</option>
<option>4pm - 8pm</option>
<option>after 8pm</option>
</select>
<br>
<font face="Palatino Linotype"><br>
Budget: </font>
<input type="text" name="budget" size="7" maxlength="15">
<br>
<font face="Palatino Linotype"><br>
Additional
Information:</font><br>
<textarea name="info" rows="5" cols="30" wrap="VIRTUAL"></textarea>
<br>
</font></p>
<p>
<font color="#800000">
<input type="submit" name="submit_mail" value="Submit">
<input type="reset" value="Reset" name="B2"> </font>
</p>
</form>
the code for the php file is this:
<?php
if ($submit_mail = "Submit"){
$body = "Name: ".$name."\n\n\n";
$body .= "Phone Number:\n".$phone."\n\n\n";
$body .= "Station Affliate:\n".$affliate."\n\n\n";
$body .= "City & State:\n".$city."\n\n\n";
$body .= "Best time to call:\n".$time."\n\n\n";
$body .= "Budget:\n".$budget."\n\n\n";
$body .= "Additional Information:\n".$info."\n\n\n";
$subject="CONTACT INFO FROM JIMMILLERVOICEOVERS";
$header="From: ".$email."\r\n";
mail("me@aol.com", $subject, $body, $header);
mail("me@aol.com", $subject, $body, $header);
header("Location: sentmail.html");
}
?>
I'm not sure what they are running on the server that this is on.
I'm trying to get it to work with Win2K3 and IIS6.0
any help would be appreciated.
~koolage