Results 1 to 3 of 3

Thread: No variables sent to form! Unable to process request.

  1. #1
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default No variables sent to form! Unable to process request.

    Hi!

    I've been trying none end to get this form working for a friend..I always get the same error -

    Here's the code, it points to a script with www.godaddy.com (can anyone please look into it?) Thx!!

    <form name="contact" method="post" action="gdform.asp" enctype="multipart/form-data" id="form">
    <input type=hidden name="recipient" value="exquisitetaramtl@live.ca"/>
    <input type=hidden name="subject" value="Online Inquiry"/>
    <input type=hidden name="redirect" value="http://www.exquisitetara.com/index3.html"/>

    <table style="width:515px; height: 149px;" class="style19">
    <tr>
    <td style="width:210px">

    <table style="height: 155px">
    <tr>
    <td style="">Name: <br />
    <input name="name" type="text" /></td>
    </tr>
    <tr>
    <td style="">E-mail: <br />
    <input name="email" type="text" /></td>
    </tr>
    <tr>
    <td style="">Phone: <br />
    <input name="phone" type="text" /></td>
    </tr>
    </table>
    </td>
    <td style="">Message: <br />
    <textarea name="message" style="width: 336px; height: 107px"></textarea>


    <div style="text-align:right">
    <span><a href="#" onClick="document.getElementById('form').reset()">clear</a></span><img src="images/spacer.gif" alt="" width="26" height="1"/><span><a href="#" onClick="document.getElementById('form').submit()">send</a></span></div>
    </td>
    </tr>
    </table>
    </form>

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    This is a php awnser....
    Create another page called send.php and link it in the form tag
    <form name="contact" method="post" action="send.php" id="form">
    If you want this to link back add this in also in the head
    Code:
    <meta http-equiv="refresh" content="20;url=PAGESENTFROM" />
    The if statments you can change around so that they are required fields or not.
    PHP Code:
    <?php
    $visitor 
    $_POST['name'];
    $visitormail $_POST['email'];
    $notes $_POST['message'];
    $phone $_POST['phone'];
    if (
    eregi('http:'$notes)) {
    die (
    "Don't try that!! ");
    }
    if(!
    $visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    {
    echo 
    "<h2>The e-mail address you entered was not correct.</h2>\n";
    die (
    "<br />Your question has not been submitted. This page will bring you back<br />in 20 seconds or you may use your browsers back menu to resubmit.\n</div>
    </div>
    </body>
    </html>"
    );
    }
    if(
    $phone == ""
    {
    echo 
    "Please enter your phone number. In the phone field"
    }
    if(
    $notes == ""
    {
    echo 
    "Please enter your message. In the message field";
    die (
    "<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
    </div>
    </body>
    </html>"
    );
    }


    if(empty(
    $visitor) || empty($visitormail) || empty($notes )) {
    echo 
    "<br />Please Fill in all of the information.\n";
    die (
    "<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
    </div>
    </body>
    </html>"
    );
    }
    $sendata="Email Address:"$visitormail;
    $todayis date("l, F j, Y, g:i a") ;
    $q="Message from "$visitor " "$notes "Submitted:" $todayis "Phone:" $phone;
    $attn $attn ;
    $subject "Message from website";
    $notes stripcslashes($notes);
    $message $todayis [EST] \n
    From: 
    $visitor ($visitormail)\n
    Additional Info : IP = 
    $ip \n
    Browser Info: 
    $httpagent \n
    Referral : 
    $httpref \n
    "
    ;

    $from "From: $visitormail\r\n";


    mail("travelinchucks@gmail.com"$subject$sendata$q);
    $File "questions.txt";
    $Handle fopen($File'a');
    $Data "<br />From:" $visitor .  "<br />Submitted on:" $todayis "<br />" $notes "<br /><hr />";
    fwrite($Handle$Data);
    fclose($Handle);

    ?>

    <p>
    Date: <?php echo $todayis ?>
    <br />
    Thank You <?php echo $visitor ?>&nbsp;for your question we will awnser you shortly by email and may post your question on our site.
    <br />
    Your question:
    <?php $notesout str_replace("\r""<br/>"$notes); echo $notesout?>
    &nbsp;has been submitted.
    <br /><br /><h1>You may use your browsers back button or wait 20 seconds and you will be redirected.</h1>
    </p>
    If that doesn't work try putting this
    Code:
    <input type="submit" value="Send Your Message" style="text-align:center;" />
    in place of
    Code:
    <span><a href="#" onClick="document.getElementById('form').reset()">clear</a></span><img src="images/spacer.gif" alt="" width="26" height="1"/><span><a href="#" onClick="document.getElementById('form').submit()">send</a></span>

  3. #3
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your reply, I got it working not too long ago by removing the encryption field...

    Thx again,

    Cheers

Bookmarks

Posting Permissions

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