Re: Going Crazy for 3 days now | |
Watdaflip explained that. But you are missing also the other three fields
<?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']); @$Mobielnummer = addslashes($_POST['Mobielnummer']); @$Email = addslashes($_POST['Email']); @$Keuze = addslashes($_POST['Keuze']); @$Bijzonderheden = addslashes($_POST['Bijzonderheden']);
// 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;
} // It is strongly reccomended that you set E-mail as required field. if (strlen($Email) == 0 )
{
header("Location: error_email.html");
exit;
//Sending Email to form owner
$pfw_header = "From: $Email\n" . "Reply-To: $Email\n";
$pfw_subject = "aanmelden";
$pfw_email_to = "info@rijschool.nl";
$pfw_message = "Naam: $Naam\n"
. "Adres: $Adres\n"
. "Postcode: $Postcode\n"
. "Woonplaats: $Woonplaats\n"
. "Geboortedatum: $Geboortedatum\n"
. "Geboorteplaats: $Geboorteplaats\n"
. "Telefoonnummer: $Telefoonnummer\n" . "Mobielnummer: $ Mobielnummer\n" . "Keuze : $ Keuze\n" . "Bijzonderheden : $Bijzonderheden\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: bevestiging.html");
?> Then you must change all the field names in your form accordingly, that is using uppercase first letter, just as it is in the script. The names of the fields must be excactly the same as in the script. For the Email take the - out, simply use "Email"
__________________
Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
Last edited by navaldesign; 02-24-2006 at 06:14 PM.
|