Please help with CSS submit issues

blamenixon

New Member
Messages
2
Reaction score
0
Points
0
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?
 

VPmase

New Member
Messages
914
Reaction score
1
Points
0
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:
Top