Topic: parsing php page slow?
Ive used this simple php mail script on freebsd all the time, now I tried it on netbsd and once I hit submit on the form it takes forever to parse or complete the form to say "sent" or to show its completed. I checked the log, everything seems fine. Sendmail is running fine and I do get the email , but the data is blank
Form Results below from .
Name:
Coming:
Amount of people coming:
Comments:
No data ^ just blank
This is the page www.haroonandaisha.com and below is the html and php code ![]()
Dont know why it takes forever for it to complete the form or parse, and duno why its not sending the data that I typed in:
html
<html>
<head>
<title>Haroon & Aisha</title>
<style type="text/css">
<!--
.main{
border: 7px solid #0034B7;
height: 400px;
width: 680px;
background: #ffffff
}
.box{
border: 1px solid #000000;
}
.main2{
border: 7px solid #0034B7;
width: 680px;
height: 99px;
background: #ffffff
}
.photo{
border: 7px solid #0034B7;
border-top-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-right-width: 7px;
}
.photo2{
border: 7px solid #0034B7;
border-top-width: 7px;
border-bottom-width: 0px;
border-left-width: 0px;
border-right-width: 7px;
padding: 5px
}
.right{
padding: 5px
}
.style2 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
font-weight: bold;
}
.style3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
font-size: 24px;
}
.style4 {
color: #000000;
font-weight: bold;
}
.style5 {color: #0034B7}
.style6 {
border: 7px solid #0034B7;
border-top-width: 7px;
border-bottom-width: 0px;
border-left-width: 0px;
border-right-width: 7px;
padding: 5px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
}
a:link {
color: #0034B7;
}
a:visited {
color: #0034B7;
}
a:hover {
color: #000000;
}
a:active {
color: #0034B7;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<center>
<table class="main2">
<tr>
<td><div align="center"><img src="images/banner.gif" width="638" height="89"></div></td>
</tr>
</table><br>
<table cellpadding="0" cellspacing="0" class="main">
<tr>
<td width="343" height="311" valign="top" class="photo"><img src="images/us.jpg" width="409" height="311"></td>
<td width="313" rowspan="5" class="right" valign="top"><div align="center"><span class="style3"><img src="images/rsvp.gif" width="117" height="38"></span> </div>
<form name="form1" method="post" action="mail.php">
<p class="style2">What is your name?
<input name="name" type="text" class="box" id="name" size="35">
</p>
<p class="style2">Are you coming to the wedding?
<input name="coming" type="text" class="box" id="coming" size="35">
</p>
<p class="style2">How many people are you bringing?
<input name="amount" type="text" class="box" id="amount" size="35">
</p>
<p class="style2">Any questions or comments?
<textarea name="comments" cols="27" rows="9" wrap="soft" class="box" id="comments"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
<span class="style2">Form has been sent! </span></p>
</form></td>
</tr>
<tr>
<td valign="top" class="photo2"><p class="style2"> <span class="style5">Date:</span> December 17th 7:00pm, December 18th 5:00pm<br>
</p></td>
</tr>
<tr>
<td valign="top" class="photo2"><span class="style2"><span class="style5">Location</span>: Tabeer<a href="http://www.tabeer-restaurant.com/"> www.tabeer-restaurant.com</a> <span class="style4"> <font face="Arial" size="2">(301) 434-2121</font></span></span></td>
</tr>
<tr>
<td valign="top" class="photo2"><span class="style2"><span class="style5">Contact:</span> Haroon 443-538-7346 haroon@user-hostile.com</span></td>
</tr>
<tr>
<td height="34" valign="top" class="style6"><p><span class="style5"><strong>Registry:</strong></span> <span class="style2"><a href="http://www.target.com/gp/registry/registry.html/ref=cm_cw_sr_1/602-4862487-3139860?%5Fencoding=UTF8&type=wedding&id=195FGMHBNYZTI">Target (registry link)</a> and </span><span class="style2"><a href="http://www.walmart.com/cservice/ca_giftregistry_detail.gsp?registry_id=26772135641">Walmart (</a><a href="http://www.target.com/gp/registry/registry.html/ref=cm_cw_sr_1/602-4862487-3139860?%5Fencoding=UTF8&type=wedding&id=195FGMHBNYZTI">registry link</a>)</span> </p>
</td>
</tr>
</table>
</center>
</body>
</html>php
<?php
/*----- BELOW IS THE MESSAGE FORMAT -----*/
$sendto = "haroon@khalidconsulting.com";
$subject = "-- RSVP FORM --";
//$replyto = "haroon@khalidconsulting.com";
$message = "Form Results below from .
Name: $name
Coming: $coming
Amount of people coming: $amount
Comments: $comments
"; // END MESSAGE FORMAT
mail("$sendto","$subject","$message","From:$name");
header('Location: http://www.haroonandaisha.com/sent.htm');
?>