Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Issue with Email Form
    primarykey
    data
    text
    <p>I have used this site before with great success and I am having a similar issue with a php email form. I tried to copy from the previous form that the guys on this site were extremely helpful in getting to work the way I wanted, but for some reason or another it won't send the form. I am sure that it is a silly oversight, but would appreciate a second set of eyes. </p> <p>Here is the code:</p> <pre><code>&lt;?php $state = 0; // check to see if verificaton code was correct if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ // if verification code was correct send the message and show this page mail("myemailaddress@hotmail.com", 'Website Inquiry: '.$subject, "\n".$comments." \n\n".$name."\n\n".$company."\n\n".$email."\n\n".$_SERVER['REMOTE_ADDR']."\n\n".'InterestedIn: '.$InterestedIn, "\n\n".'ContactMethod: '.$ContactMethod,"From: $email"); // delete the cookie so it cannot sent again by refreshing this page setcookie('tntcon',''); $state = 2; } else if(isset($message) and $message!=""){ // if verification code was incorrect then return to contact page and show error $state = 1; } if ($state == 0) { ?&gt; &lt;form action="" method="post" name="form1" id="form1" onsubmit="MM_validateForm('email','','RisEmail','name','','R','verif_box','','R') ;return document.MM_returnValue"&gt; &lt;p&gt;&lt;strong&gt;Tell us what you're interested in:&lt;/strong&gt;&lt;/p&gt; &lt;dl&gt; &lt;dd&gt;&lt;input type="radio" name="InterestedIn" value="BIBS&lt;?php echo $_GET['InterestedIn'];?&gt;"&gt; Blow-In-Blanket System &lt;input type="radio" name="InterestedIn" value="Foam&lt;?php echo $_GET['InterestedIn'];?&gt;"&gt; Soya Spray Foam &lt;input type="radio" name="InterestedIn" value="Attic&lt;?php echo $_GET['InterestedIn'];?&gt;"&gt; Attic Insulation &lt;input type="radio" name="InterestedIn" value="NotSure&lt;?php echo $_GET['InterestedIn'];?&gt;" checked="checked"&gt; Not Sure&lt;/dd&gt; &lt;/dl&gt; &lt;p&gt;&lt;strong&gt;Enter additional comments in the space provided below:&lt;/strong&gt;&lt;/p&gt; &lt;dl&gt; &lt;dd&gt;&lt;textarea name="comments" cols="50" rows="5" border="0" id="comments"&gt;&lt;?php echo $_GET['comments'];?&gt;&lt;/textarea&gt;&lt;/dd&gt; &lt;/dl&gt; &lt;p&gt;&lt;strong&gt;Tell us how to get in touch with you:&lt;/strong&gt;&lt;/p&gt; &lt;dl&gt; &lt;dd&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Name*&lt;/td&gt; &lt;td&gt; &lt;input type="text" size="40" maxlength="256" name="Name" value="&lt;?php echo $_GET['name'];?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Company&lt;/td&gt; &lt;td&gt; &lt;input type="text" size="40" maxlength="256" name="Company" value="&lt;?php echo $_GET['company'];?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Email*&lt;/td&gt; &lt;td&gt;&lt;input type="text" size="40" maxlength="256" name="email" value="&lt;?php echo $_GET['email'];?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Phone&lt;/td&gt; &lt;td&gt;&lt;input type="text" size="40" maxlength="256" name="Phone" value="&lt;?php echo $_GET['phone'];?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;City&lt;/td&gt; &lt;td&gt;&lt;input type="text" size="40" maxlength="256" name="City" value="&lt;?php echo $_GET['city'];?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/dd&gt; &lt;/dl&gt; &lt;p&gt;&lt;strong&gt;Best method to get in touch with you:&lt;/strong&gt;&lt;/p&gt; &lt;dl&gt; &lt;dd&gt;&lt;input type="radio" name="ContactMethod" value="byphone&lt;?php echo $_GET['InterestedIn'];?&gt;" checked="checked"&gt; Phone &lt;input type="radio" name="ContactMethod" value="byemail&lt;?php echo $_GET['InterestedIn'];?&gt;"&gt; Email &lt;/dd&gt; &lt;/dl&gt; &lt;dl&gt;&lt;dd&gt;&lt;img src="verificationimage.php?&lt;?php echo rand(0,9999);?&gt;" alt="verification image, type it in the box" width="50" height="24" align="top"/&gt;&amp;nbsp;&amp;nbsp;&lt;input name="verif_box" type="text" id="verif_box" style="padding:2px; border:1px solid #CCCCCC; width:80px; height:14px;"/&gt;&lt;br /&gt;&lt;br /&gt; Enter Verification Image &lt;/dd&gt;&lt;/dl&gt; &lt;p style="padding-left:60px;"&gt;&lt;input type="submit" class="button primary" value="Submit Form" name="submit"/&gt; &lt;input type="reset" class="button primary" value="Clear Form" name"clear" /&gt;&lt;/p&gt; &lt;/form&gt; </code></pre> <p>Any help would be appreciated as I have a new baby at home and am very pressed for time being a new mom and trying to get this last project completed.</p> <p>Thank you in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload