french_will Posted December 21, 2006 Share Posted December 21, 2006 Hi All,I am trying to write a mail,php scrip to go with a form I already have. The problem I have is I just can't seem to get my head arund what's needed here. I'm new to php and so get lost very easily!Basically, i need the content from the fields e-mailing after submit is sent. Could someone point me in the right direction.Thanks in Advance!!WillThe form is as below:<table width="750" height="738" border="0" align="center" cellpadding="0" cellspacing="0" class="table"> <tr> <td valign="top"><img src="http://www.commercial-power.co.uk/images/index_07.jpg" width="749" height="120"></td> </tr> <tr> <td height="402" align="left" valign="top"><table width="707" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" height="35"></td> </tr> <tr> <td width="342" valign="top" class="text" > <p align="left"><font size="4" face="Arial, Helvetica, sans-serif"><strong><font color="#FF0000"><br> Worried about rising energy bills?</font><font color="#000000"><br> <font color="#FF3300">Fix prices <u>now</u> to beat energy inflation</font></font></strong></font></p> <p align="left"><font color="#000000" size="3"><strong>Commercial Power is one of the UK's largest commercial energy brokers. We specialise in reducing costs of gas and electricity for small and medium sized businesses. </strong></font></p> <p align="left"><strong><font color="#000000" size="3">Since 1998 we have gained more than 45,000 commercial customers. </font></strong></p> <p align="left"><strong><font color="#000000"><font size="3">We have established relationships with the leading UK energy suppliers which means we can offer substantial savings for our <font color="#000000">customers</font> on both gas and electricity.</font></font></strong></p> </td> <td width="365" valign="top" class="><div align="center"> <table width="345" height="329" border="0" align="right" cellpadding="0" cellspacing="0" class="blueback"> <tr> <td height="329" align="> <p align="center"> <div align="center"><strong><font size="4" face="Arial, Helvetica, sans-serif">Please complete the form below<br> </font></strong><font size="4" face="Arial, Helvetica, sans-serif"><strong>for a FREE energy quotation.</strong></font> </div><form action="http://www.imailmedia.com/test/mail.php" method="POST" onSubmit="MM_validateForm('Name','','R','Company Name','','R','Phone Number','','RisNum');return document.MM_returnValue"> <input name="subject" type="hidden" value="CP Form Submission"><input name="redirect" type="hidden" value="http://www.********/test/thanks.html"><input name="recipient" type="hidden" value="************.com"><input name="email" type="hidden" value="[email protected]"> <p></p><table width="324" border="0" align="center" cellpadding="1" cellspacing="0"> <tr> <td width="169"><font face="Arial, Helvetica, sans-serif"><strong><font size="2">Contact Name:</font></strong></font></td> <td width="155"><font face="Arial, Helvetica, sans-serif"> <input name="Name" type="text"></font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font size="2">Company Name:</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"> <input name="Company_Name" type="text" id="Company Name"> </font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font color="#000099" size="2">Annual Electricity Usage:</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"><strong><font size="2">£</font></strong> <input name="Annual_Elec_Usage_Pounds" type="text" size="18"> </font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font color="#000099" size="2"> Kw/h:</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"> <input name="Annual_Elec_Usage_kwh" type="text"> </font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font color="#FF0000" size="2">Annual Gas Usage:</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"><strong><font size="2">£</font></strong> <input name="Annual_Gas_Usage" type="text" size="18"> </font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font color="#FF0000" size="2">Kw/h:</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"> <input name="Annual_Gas_Usage_kwh" type="text"> </font></td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif"><strong><font size="2">Contact Phone Number</font></strong></font></td> <td><font face="Arial, Helvetica, sans-serif"> <input name="Phone_Number" type="text" id="Phone Number"> </font></td> </tr> </table> <p align="center"><font face="Arial, Helvetica, sans-serif"><input name="Submit" type="image" value="Submit" src="images/submit.gif" align="middle"></font></p></form> </td> </tr> </table> <p align="center"> </p> </div></td> </tr> </table> Link to comment https://forums.phpfreaks.com/topic/31498-solved-need-help-with-mailphp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.