Jump to content

parse error in C:\wamp\www\eigenofferte3.php on line 13...


svenjcvd

Recommended Posts

you' re right about that patience... but i am patienced, im just not good in this language... Now i removed the ; from line 7 and the line 13 error is gone.. but now i get another error on line 16... maybe the cause of removing ; on line 7 ?

Can someone please check my script?

Thanks...

Re: parse error in C:\wamp\www\eigenofferte3.php on line 13...

« Reply #4 on: Today at 08:33:30 AM »QuoteCan you tell us what the error is?

 

where is the variable $email coming from? It looks like an old script that makes use of register_globals being set to on.

 

try adding $email = $_POST['email']; at the top of your script.

 

-----------------------------

 

It told me " Parse error: parse error in C:\wamp\www\eigenofferte3.php on line 14" ... now i have added $email = $_post('email'); at the top and i says..

Parse error: parse error in C:\wamp\www\eigenofferte3.php on line 17

this is my script now..

 

 

[attachment deleted by admin]

i ve now changed the ( into a { ... the error is gone, but now it gives me another one.. Same error but on line 20.. i think it was the }so ive removed it, line 20 is good, but then it says Parse error: parse error in C:\wamp\www\eigenofferte3.php on line 23

This is making me sooo angry.... damn ..

starting on line 14:

 

else {

 

// email validation

if(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $email)) {

print ("Dit is geen geldig emailadres, probeer het opnieuw a.u.b.");

exit

 

 

// send email

$headers = "From: \"$naam\" <$email>\n";

$subject = "Nieuwe offerte";

$message = "$naam". "$adres". "$postcodeplaats". "$tel". "$fax". "$email". "$offerteaanvraag";

 

mail ("[email protected]", "$Naam", $adres, $postcodeplaats);

print ("Bedankt $naam, Uw bericht is verzonden, we nemen zo spoedig mogelijk contact met je op!");

 

}

?>

 

BTW what does the $email = $_POST['email']; meens?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.