+ Reply to Thread
Results 1 to 2 of 2

Thread: Please help with CSS submit issues

  1. #1
    blamenixon is offline x10Hosting Member blamenixon is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2

    Please help with CSS submit issues

    here is the page i am working on:
    http://porterprods.x10hosting.com/quote.htm

    when i fill out the fields and click submit I get a 404 error.

    here is the code for the sendquote.php:

    <?php
    $custname = $_REQUEST['custname'] ;
    $address = $_REQUEST['address'] ;
    $city = $_REQUEST['city'] ;
    $state = $_REQUEST['state'] ;
    $zipcode = $_REQUEST['zipcode'] ;
    $phone = $_REQUEST['phone'] ;
    $work = $_REQUEST['work'] ;
    $email = $_REQUEST['email'] ;
    $insurance_type = $_REQUEST['insurance_type'] ;
    $contact_method = $_REQUEST['contact_method'] ;
    if (!isset($_REQUEST['email'])) {
    header( "Location: quote.html" );
    }

    if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) {

    ?>
    <html>
    <head><title>Spam Error</title></head>
    <body>
    <h1>ERROR</h1>
    <p>
    Please do not use our website for spamming purposes.
    </p>
    </body>
    </html>
    <?php
    }

    elseif (empty($email) || empty($message)) {
    header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
    header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
    header( "Cache-Control: no-cache, must-revalidate" );
    header( "Pragma: no-cache" );
    ?>
    <html>
    <head><title>Error</title></head>
    <body>
    <h1>Error</h1>
    <p>
    Oops, it appears you forgot to enter either your
    email address or your message. Please press the BACK
    button in your browser and try again.
    </p>
    </body>
    </html>
    <?php
    }

    else {
    mail( "porter@twcny.rr.com", "Feedback Form Results",
    "$custname\n $address\n $city\n $state\n $zipcode\n $phone\n $work\n $insurance_type\n $contact_method", "From: $email" );
    header( "Location: http://www.revdjporter.com" );
    }
    ?>

    If you click the "email form" link, there is another form there that works just fine. what's the deal with this mess?

  2. #2
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: Please help with CSS submit issues

    Looks as though you're linking to quote.html instead of quote.htm

    header( "Location: quote.html" ); should be header( "Location: quote.htm" );

    Also, your should really use the strip_tags() function when you get the form info. I don't think you want people to send stuff to images do you?
    Last edited by VPmase; 12-06-2007 at 10:53 AM.

+ Reply to Thread

Similar Threads

  1. Forum issues
    By The Corner in forum Free Hosting
    Replies: 5
    Last Post: 12-07-2007, 05:04 PM
  2. ad-free ongoing issues?
    By techeze in forum Free Hosting
    Replies: 4
    Last Post: 11-23-2007, 05:30 PM
  3. Issues NOT related to domains (ABSOLUT ONLY)
    By Corey in forum Service Alerts
    Replies: 99
    Last Post: 11-14-2007, 11:27 AM
  4. Sustained Server Issues !*Only*!
    By Corey in forum Service Alerts
    Replies: 68
    Last Post: 07-24-2007, 03:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers