SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Threaded View

  1. #1
    SitePoint Member
    Join Date
    May 2013
    0 Post(s)
    0 Thread(s)

    Help please!! Urgent! PHP form NOT going to inbox.

    For some reason I have this PHP form that I had put together which I thought was going to inbox which still is not. The form processes but every e-mail goes to the inbox. The only time it goes to the inbox is only if I'm launching it and testing the form through my PC. If somebody could help me fix this problem because this has been driving me stupid crazy. I had paid a local web company to put together the form and it seems it works but not sending to write location. This form is for my best friend / client website so that is why I sort of need it fixed ASAP. She's starting to get pretty impatient so. I also have the HTML form code just below.

    PHP Code:



    if( (
    $_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {








    $subject 'Form Submission';

    $message "Visitor  Message

                    First Name: " 
    $_POST['firstname'] ."\r\n""

                    Last Name: " 
    $_POST['lastname'] ."\r\n""

                    Phone Number: " 
    $_POST['phone'] ."\r\n""

                    Email Address: " 
    $_POST['email'] ."\r\n""

                    Comments.: " 
    $_POST['comment'] ."\r\n""



                    Sent to you by contact form."


    $headers 'From:' "\r\n" .

    'X-Mailer: PHP/' phpversion();




    else {

    "Invalid Captcha String, please resubmit form and type in the image.";


    HTML Code:
    <div id="left">
          <div id="contact_form">
            <h1>Contact </h1>
            <p>Please fill out the information below.</p>
            <form method="post" action="formm.php" name="Customer Service Form">
      <input type="hidden" name="subject" value="Customer Service Inquiry">
      <input type="hidden" name="redirect" value="../thankyou.php">
    <table width="550" border="0" align="center" cellpadding="0" cellspacing="6" class="style10">
        <td colspan="2"><b>*Denotes required fields:</b> </td>
        <td class="colorRed" colspan="2"></td>
        <td  colspan="2"> </td>
        <td width="319" ><div align="right"><b>*</b> First Name: </div></td>
        <td width="433" ><input type="text"  maxlength="40" size="18" value="" name="firstname" id="firstname" /></td>
        <td ><div align="right"><b>* </b>Last Name: </div></td>
        <td ><input type="text"  maxlength="40" size="18" value="" name="lastname" id="lastname" /></td>
        <td ><div align="right"><b>* </b>Phone Number: </div></td>
        <td ><input type="text"  maxlength="10" size="10" value="" name="phone" id="phone" /></td>
        <td ><div align="right"><b>* </b>Email Address: </div></td>
        <td >
          <input type="text"  maxlength="100" size="18" value="" name="email" id="email" />    </td>
        <td  colspan="2"> </td>
        <td><div align="right">Comments</div></td>
        <td><textarea cols="50" rows="8" wrap="virtual" maxlength="1000" name="comment" id="comment"></textarea></td>
        <td  colspan="2"> </td>
      <tr class="bodywhite_text">
        <td valign="top" class="bodytext3"><label class="formFieldQuestion">
          <div align="right">Type the image*&nbsp;<a class="info" href="#"><img src="tip_small.png" alt="For security purposes, please type the letters in the image." border="0" /></a><br />
            <img src="CaptchaSecurityImages.php" /> </div>
        <td valign="top"><input id="captchaForm" name="security_code" class="mainForm" type="text"/></td>
        <td ></td>
        <td ><input name="Submit" type="submit" onclick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="Submit" /></td>
          <div id="message_sent" style="display:none;">
            <h1>Your message has been sent</h1>
            <p>We'll contact you in a shortest possible time.</p>
            <p>You can now <a href="#" class="read-more">go back</a> to home page.</p>
    Last edited by Mittineague; Jun 12, 2013 at 11:45. Reason: please read the FAQ


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts