PLEASE help me, the pages don't work together and i don't know what i'm doing wrong...
when i fill my name in and click on the submit button i directly go to the errorpage, what am i doing wrong?
i've read all the forums (navaldisign, bird , guyhurrry, pablo) and im getting crazy .
here are al the page's codes (PHP,HTML-form,ERROR_PAGE,CONFERMATION PAGE)please help me, thank you
PHP:
<?php
// Receiving variables
@$Naam = addslashes($_POST['naam']);
@$Adres = addslashes($_POST['adres']);
@$Postcode = addslashes($_POST['postcode']);
@$Woonplaats = addslashes($_POST['woonplaats']);
@$Geboortedatum = addslashes($_POST['geboortedatum']);
@$Geboorteplaats = addslashes($_POST['geboorteplaats']);
@$Telefoonnummer = addslashes($_POST['telefoonnummer']);
// Validation
if (strlen($naam) == 0 )
{
header("Location: error_naam.html");
exit;
}
if (strlen($Adres) == 0 )
{
header("Location: error_adres.html");
exit;
}
if (strlen($Postcode) == 0 )
{
header("Location: error_postcode.html");
exit;
}
if (strlen($Woonplaats) == 0 )
{
header("Location: error_woonplaats.html");
exit;
}
if (strlen($Geboortedatum) == 0 )
{
header("Location: error_geboortedatum.html");
exit;
}
if (strlen($Geboorteplaats) == 0 )
{
header("Location: error_geboorteplaats.html");
exit;
}
if (strlen($Telefoonnummer) == 0 )
{
header("Location: error_telefoonnummer.html");
exit;
}
//Sending Email to form owner
$pfw_header = "From: $Email\n"
. "Reply-To: $Email\n";
$pfw_subject = "aanmelden";
$pfw_email_to = "secretalain********.com";
$pfw_message =
. "naam: $naam\n"
. "Adres: $Adres\n"
. "postcode: $postcode\n"
. "woonplaats: $woonplaats\n"
. "geboortedatum: $geboortedatum\n"
. "geboorteplaats: $geboorteplaats\n"
. "telefoonnummer: $telefoonnummer\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: bevestiging.html");
?>
HTML (the red words are the reguired fields):
<HTML>
<HEAD>
<TITLE></TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
<META NAME="Keywords" CONTENT=>
<META NAME="Description" CONTENT=>
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute; left:418px; top:67px; width:150px; height:19px; z-index:24" align="left" valign="top">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Aanmelden</B></FONT>
</DIV>
<DIV style="position:absolute; left:197px; top:53px; width:522px; height:627px; z-index:25" align="left" valign="top">
<FORM name=aanmelden method=POST action="aanmelden.php">
<INPUT type="text" style="position:absolute;left:196px;top:78px;width :304px;z-index:0" size="38" name="naam " value="">
<INPUT type="text" style="position:absolute;left:196px;top:114px;widt h:304px;z-index:1" size="38" name="adres " value="">
<INPUT type="text" style="position:absolute;left:196px;top:151px;widt h:144px;z-index:2" size="18" name="postcode " value="">
<INPUT type="text" style="position:absolute;left:196px;top:187px;widt h:304px;z-index:3" size="38" name="woonplaats " value="">
<INPUT type="text" style="position:absolute;left:196px;top:222px;widt h:200px;z-index:4" size="25" name="geboortedatum " value="">
<INPUT type="text" style="position:absolute;left:195px;top:257px;widt h:304px;z-index:5" size="38" name="geboorteplaats " value="">
<INPUT type="text" style="position:absolute;left:195px;top:294px;widt h:200px;z-index:6" size="25" name="telefoonnummer " value="">
<INPUT type="text" style="position:absolute;left:195px;top:330px;widt h:200px;z-index:7" size="25" name="mobielnummer " value="">
<INPUT type="text" style="position:absolute;left:195px;top:365px;widt h:304px;z-index:8" size="38" name="e-mail " value="">
<select name="keuze" size="1" style="position:absolute;left:193px;top:400px;widt h:146px;font-family:MS Shell Dlg;z-index:9">
<option></option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
</select>
<TEXTAREA name="bijzonderheden " style="position:absolute;left:195px;top:438px;widt h:303px;height:89px;z-index:10" rows=5 cols=35></TEXTAREA>
<INPUT type="submit" name="Aanmelden " value="Aanmelden" style="position:absolute;left:195px;top:545px;z-index:11">
<DIV style="position:absolute; left:11px; top:79px; width:150px; height:19px; z-index:12" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Naam: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:114px; width:150px; height:19px; z-index:13" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Adres: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:150px; width:150px; height:19px; z-index:14" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Postcode: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:186px; width:150px; height:19px; z-index:15" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Woonplaats: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:222px; width:150px; height:19px; z-index:16" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Geboortedatum: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:258px; width:150px; height:19px; z-index:17" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Geboorteplaats: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:294px; width:150px; height:19px; z-index:18" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Telefoonnummer: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:330px; width:150px; height:19px; z-index:19" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Mobiel:</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:366px; width:150px; height:19px; z-index:20" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>E-Mail:</B></FONT>
</DIV>
<DIV style="position:absolute; left:13px; top:402px; width:150px; height:19px; z-index:21" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Keuze : </B></FONT>
</DIV>
<DIV style="position:absolute; left:12px; top:440px; width:150px; height:19px; z-index:22" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Bijzonderheden:</B></FONT>
</DIV>
<DIV style="position:absolute; left:199px; top:578px; width:178px; height:16px; z-index:23" align="left" valign="top">
<FONT style="FONT-SIZE:10pt" color="#FF0000" face="Arial">* Verplicht om in te vullen!</FONT>
</DIV>
</FORM>
</DIV>
</BODY>
</HTML>
ERROR PAGE:
<HTML>
<HEAD><meta http-equiv="imagetoolbar" content="no">
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>Niet alle velden ingevuld!</TITLE>
<META name=>
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute;left:264px;top:98px;width :299px;height:22px;z-index:0" align="center">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Vul aub u naam in</B></FONT>
</DIV>
<IMG src="no-way.jpg" alt="" align="top" border="0" width="173" height="172" style="position:absolute;left:328px;top:162px;widt h:173px;height:172px;z-index:1">
<BUTTON type="button" onClick="history.go(-1)" name="Terug" style="position:absolute;left:327px;top:396px;widt h:175px;height:23px;z-index:2"><P><FONT style="FONT-SIZE:10pt" color="#000000" face="Arial"><B>Terug</B></FONT></P></BUTTON>
</BODY>
</HTML>
CONFITMATION PAGE
<HTML>
<HEAD>
<TITLE></TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
<META NAME="Keywords" CONTENT=">
<META NAME="Description" CONTENT=">
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute; left:418px; top:67px; width:150px; height:19px; z-index:0" align="left" valign="top">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Aanmelden</B></FONT>
</DIV>
<DIV style="position:absolute; left:292px; top:271px; width:425px; height:58px; z-index:1" align="left" valign="top">
<FONT style="FONT-SIZE:18pt" color="#000000" face="Arial"><B>BEDANKT VOOR ALLE REACTIE'S !!!</B></FONT>
</DIV>
</BODY>
</HTML>
how is it possibele that when i fill in the form, i directly go to the error page ???
please reply.....
when i fill my name in and click on the submit button i directly go to the errorpage, what am i doing wrong?
i've read all the forums (navaldisign, bird , guyhurrry, pablo) and im getting crazy .
here are al the page's codes (PHP,HTML-form,ERROR_PAGE,CONFERMATION PAGE)please help me, thank you
PHP:
<?php
// Receiving variables
@$Naam = addslashes($_POST['naam']);
@$Adres = addslashes($_POST['adres']);
@$Postcode = addslashes($_POST['postcode']);
@$Woonplaats = addslashes($_POST['woonplaats']);
@$Geboortedatum = addslashes($_POST['geboortedatum']);
@$Geboorteplaats = addslashes($_POST['geboorteplaats']);
@$Telefoonnummer = addslashes($_POST['telefoonnummer']);
// Validation
if (strlen($naam) == 0 )
{
header("Location: error_naam.html");
exit;
}
if (strlen($Adres) == 0 )
{
header("Location: error_adres.html");
exit;
}
if (strlen($Postcode) == 0 )
{
header("Location: error_postcode.html");
exit;
}
if (strlen($Woonplaats) == 0 )
{
header("Location: error_woonplaats.html");
exit;
}
if (strlen($Geboortedatum) == 0 )
{
header("Location: error_geboortedatum.html");
exit;
}
if (strlen($Geboorteplaats) == 0 )
{
header("Location: error_geboorteplaats.html");
exit;
}
if (strlen($Telefoonnummer) == 0 )
{
header("Location: error_telefoonnummer.html");
exit;
}
//Sending Email to form owner
$pfw_header = "From: $Email\n"
. "Reply-To: $Email\n";
$pfw_subject = "aanmelden";
$pfw_email_to = "secretalain********.com";
$pfw_message =
. "naam: $naam\n"
. "Adres: $Adres\n"
. "postcode: $postcode\n"
. "woonplaats: $woonplaats\n"
. "geboortedatum: $geboortedatum\n"
. "geboorteplaats: $geboorteplaats\n"
. "telefoonnummer: $telefoonnummer\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: bevestiging.html");
?>
HTML (the red words are the reguired fields):
<HTML>
<HEAD>
<TITLE></TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
<META NAME="Keywords" CONTENT=>
<META NAME="Description" CONTENT=>
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute; left:418px; top:67px; width:150px; height:19px; z-index:24" align="left" valign="top">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Aanmelden</B></FONT>
</DIV>
<DIV style="position:absolute; left:197px; top:53px; width:522px; height:627px; z-index:25" align="left" valign="top">
<FORM name=aanmelden method=POST action="aanmelden.php">
<INPUT type="text" style="position:absolute;left:196px;top:78px;width :304px;z-index:0" size="38" name="naam " value="">
<INPUT type="text" style="position:absolute;left:196px;top:114px;widt h:304px;z-index:1" size="38" name="adres " value="">
<INPUT type="text" style="position:absolute;left:196px;top:151px;widt h:144px;z-index:2" size="18" name="postcode " value="">
<INPUT type="text" style="position:absolute;left:196px;top:187px;widt h:304px;z-index:3" size="38" name="woonplaats " value="">
<INPUT type="text" style="position:absolute;left:196px;top:222px;widt h:200px;z-index:4" size="25" name="geboortedatum " value="">
<INPUT type="text" style="position:absolute;left:195px;top:257px;widt h:304px;z-index:5" size="38" name="geboorteplaats " value="">
<INPUT type="text" style="position:absolute;left:195px;top:294px;widt h:200px;z-index:6" size="25" name="telefoonnummer " value="">
<INPUT type="text" style="position:absolute;left:195px;top:330px;widt h:200px;z-index:7" size="25" name="mobielnummer " value="">
<INPUT type="text" style="position:absolute;left:195px;top:365px;widt h:304px;z-index:8" size="38" name="e-mail " value="">
<select name="keuze" size="1" style="position:absolute;left:193px;top:400px;widt h:146px;font-family:MS Shell Dlg;z-index:9">
<option></option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
</select>
<TEXTAREA name="bijzonderheden " style="position:absolute;left:195px;top:438px;widt h:303px;height:89px;z-index:10" rows=5 cols=35></TEXTAREA>
<INPUT type="submit" name="Aanmelden " value="Aanmelden" style="position:absolute;left:195px;top:545px;z-index:11">
<DIV style="position:absolute; left:11px; top:79px; width:150px; height:19px; z-index:12" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Naam: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:114px; width:150px; height:19px; z-index:13" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Adres: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:150px; width:150px; height:19px; z-index:14" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Postcode: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:186px; width:150px; height:19px; z-index:15" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Woonplaats: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:222px; width:150px; height:19px; z-index:16" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Geboortedatum: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:10px; top:258px; width:150px; height:19px; z-index:17" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Geboorteplaats: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:294px; width:150px; height:19px; z-index:18" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Telefoonnummer: </FONT><FONT style="FONT-SIZE:12pt" color="#FF0000" face="Arial">*</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:330px; width:150px; height:19px; z-index:19" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Mobiel:</B></FONT>
</DIV>
<DIV style="position:absolute; left:11px; top:366px; width:150px; height:19px; z-index:20" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>E-Mail:</B></FONT>
</DIV>
<DIV style="position:absolute; left:13px; top:402px; width:150px; height:19px; z-index:21" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Keuze : </B></FONT>
</DIV>
<DIV style="position:absolute; left:12px; top:440px; width:150px; height:19px; z-index:22" align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#000000" face="Arial"><B>Bijzonderheden:</B></FONT>
</DIV>
<DIV style="position:absolute; left:199px; top:578px; width:178px; height:16px; z-index:23" align="left" valign="top">
<FONT style="FONT-SIZE:10pt" color="#FF0000" face="Arial">* Verplicht om in te vullen!</FONT>
</DIV>
</FORM>
</DIV>
</BODY>
</HTML>
ERROR PAGE:
<HTML>
<HEAD><meta http-equiv="imagetoolbar" content="no">
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>Niet alle velden ingevuld!</TITLE>
<META name=>
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute;left:264px;top:98px;width :299px;height:22px;z-index:0" align="center">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Vul aub u naam in</B></FONT>
</DIV>
<IMG src="no-way.jpg" alt="" align="top" border="0" width="173" height="172" style="position:absolute;left:328px;top:162px;widt h:173px;height:172px;z-index:1">
<BUTTON type="button" onClick="history.go(-1)" name="Terug" style="position:absolute;left:327px;top:396px;widt h:175px;height:23px;z-index:2"><P><FONT style="FONT-SIZE:10pt" color="#000000" face="Arial"><B>Terug</B></FONT></P></BUTTON>
</BODY>
</HTML>
CONFITMATION PAGE
<HTML>
<HEAD>
<TITLE></TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
<META NAME="Keywords" CONTENT=">
<META NAME="Description" CONTENT=">
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute; left:418px; top:67px; width:150px; height:19px; z-index:0" align="left" valign="top">
<FONT style="FONT-SIZE:14pt" color="#000000" face="Arial"><B>Aanmelden</B></FONT>
</DIV>
<DIV style="position:absolute; left:292px; top:271px; width:425px; height:58px; z-index:1" align="left" valign="top">
<FONT style="FONT-SIZE:18pt" color="#000000" face="Arial"><B>BEDANKT VOOR ALLE REACTIE'S !!!</B></FONT>
</DIV>
</BODY>
</HTML>
how is it possibele that when i fill in the form, i directly go to the error page ???
please reply.....
Comment