View Single Post
  #8  
Old 02-24-2006, 02:46 PM
secretalain secretalain is offline
Corporal
 
Join Date: Dec 2005
Posts: 16
Red face Re: Going Crazy for 3 days now

my URL for the form : http://www.rijschooldelta.nl/aanmelden.html
the URL for the error pages : http://www.rijschooldelta.nl/error_naam.html
http://www.rijschooldelta.nl/error_adres.html
http://www.rijschooldelta.nl/error_postcode.html ETC.

i haven't putt in the email as required. maybey the next step butt first i want to fill in these required fields.thank you so far!

my PHP file at the moment :

<?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;
}
//Sending Email to form owner
$pfw_header = "From: $Email\n"
. "Reply-To: $Email\n";
$pfw_subject = "aanmelden";
$pfw_email_to = info@rijschooldelta.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");
?>

it still doesnt work... everytime when i fill in the form it gives me the error_naam page. when i made the form i gave de max. lenghts of the tabs 0 (unlimited)... maybe t got something to do with that???
i'm really stuck on this please help...
Reply With Quote