spewn
Programmer
- May 7, 2001
- 1,034
"Warning: Invalid argument supplied for foreach() in /home/send.php on line 2"
send.php
*
<?php
foreach($s as $name=> $value){$texta .= "$name : $value \n\r";}
mail("mailMoney@hotmail.com","Quote Request", $texta,"From: mailMoney@hotmail.com"
;
?>
*
contactForm.html
*
<form action="send.php" method="post" name="myform" id="myform">
<table width="98%" border="0" cellpadding="2" cellspacing="2" align="center">
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Name:</td>
<td width="50%"> <input name="myname" type="text" id="myname" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Title/Position:</td>
<td width="50%"> <input name="position" type="text" id="position" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Company
Name:</td>
<td width="50%"> <input name="company" type="text" id="company" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Address:</td>
<td width="50%"> <input name="address" type="text" id="address" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">City:</td>
<td width="50%"> <input name="city" type="text" id="city" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">State:</td>
<td width="50%"> <input name="state" type="text" id="state" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" bgcolor="#efefef" class="ctxt">Phone:</td>
<td width="50%" bgcolor="#efefef"> <input name="phone" type="text" id="phone" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Fax:</td>
<td width="50%"> <input name="fax" type="text" id="fax" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Email:</td>
<td width="50%"> <input name="email" type="text" id="email" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Website:</td>
<td width="50%"> <input name="website" type="text" id="website" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Type
of Business:</td>
<td width="50%"> <input name="type" type="text" id="type" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Products/Services:</td>
<td width="50%"> <input name="products" type="text" id="products" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Years
in Business:</td>
<td width="50%"> <input name="yib" type="text" id="yib" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Number
of Employees:</td>
<td width="50%"> <input name="employees" type="text" id="employees" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Annual
Sales $:</td>
<td width="50%"> <input name="sales" type="text" id="sales" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" valign="top" class="ctxt"><p>Other
Information:</p>
<table width="100%" border="0" cellspacing="4" cellpadding="2">
<tr>
<td bgcolor="#efefef"> <strong><span class="ctxt">Summary
of M.A.P. Services</span></strong><br>
• <span class="ctxt">Strategic
Cost Reductions</span><br> •
<span class="ctxt">Turn-Around Solutions</span><br>
• <span class="ctxt">Consolidations
& Closures</span><br> •
<span class="ctxt">Waste Handling
Initiatives</span></td>
</tr>
</table>
<p> </p></td>
<td width="50%"> <textarea name="comments" cols="24" rows="10" id="comments"></textarea></td>
</tr>
<tr>
<td height="30" valign="top" class="ctxt"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40"> <input type="submit" name="Submit" value="Submit">
</td>
<td width="50%"><input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table></td>
</tr>
</table>
</form>
*
thank you for any help. i know it's an easy fix...this is my first crack at php...
- g
send.php
*
<?php
foreach($s as $name=> $value){$texta .= "$name : $value \n\r";}
mail("mailMoney@hotmail.com","Quote Request", $texta,"From: mailMoney@hotmail.com"

?>
*
contactForm.html
*
<form action="send.php" method="post" name="myform" id="myform">
<table width="98%" border="0" cellpadding="2" cellspacing="2" align="center">
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Name:</td>
<td width="50%"> <input name="myname" type="text" id="myname" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Title/Position:</td>
<td width="50%"> <input name="position" type="text" id="position" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Company
Name:</td>
<td width="50%"> <input name="company" type="text" id="company" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Address:</td>
<td width="50%"> <input name="address" type="text" id="address" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">City:</td>
<td width="50%"> <input name="city" type="text" id="city" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">State:</td>
<td width="50%"> <input name="state" type="text" id="state" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" bgcolor="#efefef" class="ctxt">Phone:</td>
<td width="50%" bgcolor="#efefef"> <input name="phone" type="text" id="phone" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Fax:</td>
<td width="50%"> <input name="fax" type="text" id="fax" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Email:</td>
<td width="50%"> <input name="email" type="text" id="email" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Website:</td>
<td width="50%"> <input name="website" type="text" id="website" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Type
of Business:</td>
<td width="50%"> <input name="type" type="text" id="type" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Products/Services:</td>
<td width="50%"> <input name="products" type="text" id="products" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Years
in Business:</td>
<td width="50%"> <input name="yib" type="text" id="yib" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" class="ctxt">Number
of Employees:</td>
<td width="50%"> <input name="employees" type="text" id="employees" size="25"></td>
</tr>
<tr bgcolor="#efefef">
<td width="50%" height="30" class="ctxt">Annual
Sales $:</td>
<td width="50%"> <input name="sales" type="text" id="sales" size="25"></td>
</tr>
<tr>
<td width="50%" height="30" valign="top" class="ctxt"><p>Other
Information:</p>
<table width="100%" border="0" cellspacing="4" cellpadding="2">
<tr>
<td bgcolor="#efefef"> <strong><span class="ctxt">Summary
of M.A.P. Services</span></strong><br>
• <span class="ctxt">Strategic
Cost Reductions</span><br> •
<span class="ctxt">Turn-Around Solutions</span><br>
• <span class="ctxt">Consolidations
& Closures</span><br> •
<span class="ctxt">Waste Handling
Initiatives</span></td>
</tr>
</table>
<p> </p></td>
<td width="50%"> <textarea name="comments" cols="24" rows="10" id="comments"></textarea></td>
</tr>
<tr>
<td height="30" valign="top" class="ctxt"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="40"> <input type="submit" name="Submit" value="Submit">
</td>
<td width="50%"><input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table></td>
</tr>
</table>
</form>
*
thank you for any help. i know it's an easy fix...this is my first crack at php...
- g