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...

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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 ("$sven_vd@hotmail.com", "$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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.