Forum Moderators: coopster

Message Too Old, No Replies

Parse error: syntax error, unexpected T VARIABLE in

         

teddytza

9:45 am on Oct 6, 2007 (gmt 0)

10+ Year Member



I can't figure this out I am posting the script as well if you see something wrong please send an email.

=====================================
<?php
$nume = $_POST['nume']
$prenume = $_POST['prenume']
$adresa = $_POST['adresa']
$telefon = $_POST['telefon']
$mobil = $_POST['mobil']
$A = $_POST['A']
$B = $_POST['B']
$C = $_POST['C']
$CE = $_POST['C+E']
$D = $_POST['D']
$zi = $_POST['zi']
$luna = $_POST['luna']
$an = $_POST['an']
$email = $_POST['email']
$comentarii = $_POST['comentarii']
$ip = getenv("REMOTE_ADDR");

$msg = "Nume: $nume\nPrenume: $prenume\nAdresa: $adresa\nTelefon fix: $telefon\nMobil: $mobil\nCategoria A: $A\nCategoriaB: $B\nCategoriaC: $C\nCategoriaC+E: $CE\nCategoriaD: $D\nData Nasterii: $zi-$luna-$an\nIP: $ip";
$to = "email@example.com";
$subj = "candidat nou";
$from = "www.example.com";
mail ($to, $subj, $msg, $from);
header("Location: success.htm");
}
?>
===================================
error is Parse error: syntax error, unexpected T_VARIABLE in D:\xampp\htdocs\test\auto school\site_flash\send.php on line 4

10x for help

[edited by: dreamcatcher at 9:49 am (utc) on Oct. 6, 2007]
[edit reason] Use example.com, thanks. [/edit]

dreamcatcher

9:51 am on Oct 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi teddytza,

Welcome to Webmaster World. :)

The problem is your first 14 lines are not terminated with a semi colon.

dc

teddytza

9:52 am on Oct 6, 2007 (gmt 0)

10+ Year Member



lol what an blind/idiot I am:D

dreamcatcher

10:45 am on Oct 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, we`ve all had moments of madness, so don`t worry.

dc