Hi all, I don't know php so can anyone help me please to submit the following form to this email address . http://www.transcriptiondynamics.com/Free.html I will really thankful for any help in this regard bushib.
<?php $body='<form name="SubmitForm" action="" method="POST"><table width="558" height="974" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber11" style="border-collapse: collapse"> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="47"><p align="center"> <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> We offer a one-week free trial of our services. To start the Trial, please fill-in the following information and click ‘Submit’. For any questions, please contact us at</span></p> <p align="center"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><a href="mailto:info@theribosome.com">info@transcriptiondynamics.com</a></span><br /> </p></td> </tr> <tr> <td width="100%" height="889"><div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="450" id="AutoNumber12"> <tr> <td width="182" bgcolor="#FFFFFF"><font face="Verdana" size="1" color="#056C95">.</font></td> <td width="268" bgcolor="#FFFFFF"><font face="Verdana" size="1" color="#056C95">.</font></td> </tr> <tr> <td width="182" height="40"><font size="2" face="Verdana">Name:<br /> </font> <font size="1" face="Verdana"> (Required)</font></td> <td width="268"><input type="text" name="fldName" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="j" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="40"><font size="2" face="Verdana"> Email:<br /> </font> <font size="1" face="Verdana"> (Required)</font></td> <td width="268"><input type="text" name="fldEmail" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="i" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="40"><font size="2" face="Verdana">Phone:<br /> </font> <font size="1" face="Verdana"> (Required)</font></td> <td width="268"><input type="text" name="fldPhone" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="h" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="35"><font size="2" face="Verdana">Fax:</font></td> <td width="268"><input type="text" name="fldFax" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="g" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="35"><font face="Verdana" size="2"> Medical specialty</font></td> <td width="268"><input type="text" name="fldMedical" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="f" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="35"><font size="2" face="Verdana">No. of doctors in practice</font></td> <td width="268"><input type="text" name="fldPractice" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="e" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="80"><font face="Verdana" size="2">Apprx. transcription<br /> volume</font></td> <td width="268"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber16"> <tr> <td width="8%"><input type="radio" value="Lines transcribed / month" checked="checked" name="volume" /></td> <td width="92%"><font size="2" face="Verdana"> Lines transcribed / month</font></td> </tr> <tr> <td width="8%"><input type="radio" name="volume" value="Minutes dictated / month" /></td> <td width="92%"><font size="2" face="Verdana"> Minutes dictated / month</font></td> </tr> <tr> <td width="8%"><input type="radio" name="volume" value="Monthly transcription bill" /></td> <td width="92%"><font size="2" face="Verdana"> Monthly transcription bill</font></td> </tr> <tr> <td width="8%"><input type="radio" name="volume" value="Patients visits per day" /></td> <td width="92%"><font size="2" face="Verdana"> Patients visits per day</font></td> </tr> </table></td> </tr> <tr> <td width="182" height="25"> </td> <td width="268"><input type="text" name="fldVolume" size="36" /></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="d" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="80"><font face="Verdana" size="2">How would you like to<br /> record dictation? </font></td> <td width="268"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber17"> <tr> <td width="9%"><input type="radio" value="Toll-free Telephone Service" name="dictation" /></td> <td width="91%"><font size="2" face="Verdana"> Toll-free Telephone Service</font></td> </tr> <tr> <td width="9%"><input type="radio" name="dictation" value="Digital Handheld Recorder" /></td> <td width="91%"><font size="2" face="Verdana"> Digital Handheld Recorder</font></td> </tr> <tr> <td width="100%" colspan="2"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber18"> <tr> <td width="15%"><font size="2" face="Verdana"> Make</font></td> <td width="35%"><input type="text" name="fldDictation_Make" size="10" /></td> <td width="16%"><font size="2" face="Verdana"> Model</font></td> <td width="34%"><input type="text" name="fldDictation_Model" size="9" /></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td width="450" valign="top" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="c" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="100" valign="top"><font size="2" face="Verdana" color="#056C95"><br /> </font> <font size="2" face="Verdana">Report Formats</font></td> <td width="268"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber19"> <tr> <td width="9%"><input type="radio" value="I want to use Bright Mind standard formats during the trial" name="formats" /></td> <td width="91%" height="40"><font size="2" face="Verdana">I want to use Bright Mind standard formats during the trial</font></td> </tr> <tr> <td width="9%"><input type="radio" name="formats" value="I want reports customized to my formats during the trial" /></td> <td width="91%" height="40"><font size="2" face="Verdana">I want reports customized to my formats during the trial</font></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber20"> <tr> <td width="100%" height="30" valign="bottom"><font size="1" face="Verdana"> Please attach your current reports</font></td> </tr> <tr> <td width="100%" height="35"><input type="file" name="F1" size="20" /></td> </tr> <tr> <td width="100%" height="35"><input type="file" name="F2" size="20" /></td> </tr> <tr> <td width="100%" height="35"><input type="file" name="F3" size="20" /></td> </tr> <tr> <td width="100%" height="35"><input type="file" name="F4" size="20" /></td> </tr> <tr> <td width="100%" height="35"><input type="file" name="F5" size="20" /></td> </tr> <tr> <td width="100%"><font size="1" face="Verdana"> or simply fax your formats to <strong>111111111</strong></font></td> </tr> </table></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="b" width="265" height="1" border="0" /></td> </tr> <tr> <td width="182" height="100"><font size="2" face="Verdana"> Additional Information</font></td> <td width="268"><textarea rows="5" name="fldAdditional" cols="30"></textarea></td> </tr> <tr> <td width="450" colspan="2" background="f_bg.jpg"><img src="f_bg.jpg" alt="a" width="265" height="1" border="0" /></td> </tr> <tr> <td width="450" height="40" colspan="2"><p align="center"> <input type="submit" value="Submit" name="B1" /> </p></td> </tr> <tr> <td width="450" height="20" colspan="2"><p align="center"> </p></td> </tr> </table> </center> </div></td> </tr> </table></form>'; $headers = "From: [email]FromEmailID[/email] \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 \r "; /*notice there aren't any \r\n after the second two header additions. This is what made this version work correctly*/ mail("ToEmailID", "An HTML Message", $body, $headers); ?> PHP: I think this one is your answer pls try it.
1. You need not upload the .php file that will be in your server. Whenever form is submitted from mail data will be submitted in your website .php file. 2. Whenever user will submit the form from mail it will directly submit to your website. No need to do any changes in hosting control panel
Hi there, I will try to do work with the code you provided. In case of any problem I will definitely contact you again and I hope you will cooperate with me till the problem is solved. I will be really thankful to you for your help and cooperation. Best Regards bushib
I use the following: <?php if (empty($_POST)) { print "Error with form, please contact the webmaster."; } else { // Configuration Settings $SendFrom = "Website Contact Form <>"; $SendTo = "info@website.com"; $SubjectLine = "Contact Form"; $ThanksURL = "index.php"; //confirmation page $Divider = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"; // Build Message Body from Web Form Input $MsgBody = @gethostbyaddr($REMOTE_ADDR) . "\n$Divider\n"; foreach ($_POST as $Field=>$Value) $MsgBody .= "$Field: $Value\n"; $MsgBody .= $Divider . "\n" . $HTTP_USER_AGENT . "\n"; $MsgBody = htmlspecialchars($MsgBody); //make content safe // Send E-Mail and Direct Browser to Confirmation Page mail($SendTo, $SubjectLine, $MsgBody, "From: " . $SendFrom); header("Location: $ThanksURL"); } ?> Code (markup): Just save this in a php called e.g. customerform.php then in your page with the form simply use this: <form action="customerform.php" method="post">