I have made a second form for my website.
Made the confirmation2.html page, and used notepad for the confirmation.php. Also made my error pages.
When I click on order, then submit, it will go to the style error page, I go back and choose the style, then submit again, it doesn't change, its still stuck on style, and will not go any further.
What am I doing wrong here? I must be missing something! LOL
style_errorpage2.html
size_errorpage2.html
text_errorpage2.html
signature_name_errorpage2.html
email_errorpage2.html
The script I used is>>
<?php
if($_SERVER['HTTP_REFERER'] == "http://www.fromtheheartofangels.com/...orderform.html")
{
// Receiving variables from the form
@$style = addslashes($_POST['style']);
@$size = addslashes($_POST['size']);
@$text_font = addslashes($_POST['text_font']);
@$signature_name = addslashes($_POST['signature_name']);
@$email = addslashes($_POST['email']);
@$comments = addslashes($_POST['comments']);
// Validation for empty fields and email
if (strlen($style) == 0 )
{
header("Location: style_errorpage2.html");
exit;
}
if (strlen($size) == 0 )
{
header("Location: size_errorpage2.html");
exit;
}
if (strlen($text_font) == 0 )
{
header("Location: text_errorpage2.html");
exit;
}
if (strlen($signature_name) == 0 )
{
header("Location: signature_name_errorpage2.html");
exit;
}
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
header("Location: email_errorpage2.html");
exit;
}
if (strlen($email) == 0 )
{
header("Location: email_errorpage2.html");
exit;
}
if (strlen($background) == 0 )
{
header("Location: background_errorpage2.html");
exit;
}
//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "Signature Name Order";
$pfw_email_to = "My address";
$pfw_message = "Style : $style\n"
. "size: $size\n"
. "text_font: $text_font\n"
. "signature_name: $signature_name\n"
. "email: $email\n"
. "comments: $comments\n"
. "background: $background\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: confirmation2.html");
}
else
{
echo "You didn't submit this from my site";
}
?>
Thanks, Bird
Made the confirmation2.html page, and used notepad for the confirmation.php. Also made my error pages.
When I click on order, then submit, it will go to the style error page, I go back and choose the style, then submit again, it doesn't change, its still stuck on style, and will not go any further.
What am I doing wrong here? I must be missing something! LOL
style_errorpage2.html
size_errorpage2.html
text_errorpage2.html
signature_name_errorpage2.html
email_errorpage2.html
The script I used is>>
<?php
if($_SERVER['HTTP_REFERER'] == "http://www.fromtheheartofangels.com/...orderform.html")
{
// Receiving variables from the form
@$style = addslashes($_POST['style']);
@$size = addslashes($_POST['size']);
@$text_font = addslashes($_POST['text_font']);
@$signature_name = addslashes($_POST['signature_name']);
@$email = addslashes($_POST['email']);
@$comments = addslashes($_POST['comments']);
// Validation for empty fields and email
if (strlen($style) == 0 )
{
header("Location: style_errorpage2.html");
exit;
}
if (strlen($size) == 0 )
{
header("Location: size_errorpage2.html");
exit;
}
if (strlen($text_font) == 0 )
{
header("Location: text_errorpage2.html");
exit;
}
if (strlen($signature_name) == 0 )
{
header("Location: signature_name_errorpage2.html");
exit;
}
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
header("Location: email_errorpage2.html");
exit;
}
if (strlen($email) == 0 )
{
header("Location: email_errorpage2.html");
exit;
}
if (strlen($background) == 0 )
{
header("Location: background_errorpage2.html");
exit;
}
//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "Signature Name Order";
$pfw_email_to = "My address";
$pfw_message = "Style : $style\n"
. "size: $size\n"
. "text_font: $text_font\n"
. "signature_name: $signature_name\n"
. "email: $email\n"
. "comments: $comments\n"
. "background: $background\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: confirmation2.html");
}
else
{
echo "You didn't submit this from my site";
}
?>
Thanks, Bird
Comment