|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
parse error *again
i keep getting this error msg
Parse error: parse error, expecting `','' or `';'' in /www/rapidprototyping.co.nz/root/send.php on line 48 this is where the error is but i have no idea whats happening, could it be the ":"?? echo "<P align=center>Your submission has been successfully sent to: Rapid Prototyping New Zealand.</P>"; but heres the rest of the line.. echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY background="image/backframe.jpg">"; echo "<H1 align=center>Thank You, {$_POST[name]}</H1>"; echo "<P align=center>Your submission has been successfully sent to: Rapid Prototyping New Zealand.</P>"; echo "</BODY></HTML>"; |
|
#2
|
|||
|
|||
|
RE: parse error *again
try changing the following lines..
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY background="image/backframe.jpg">"; echo "<H1 align=center>Thank You, {$_POST['name']}</H1>"; |
|
#3
|
|||
|
|||
|
RE: parse error *again
Actually those quotes don`t need to be there at all. It makes for writing code faster when you don`t add the all the time.
|
|
#4
|
|||
|
|||
|
RE: parse error *again
The error you get is more than likely the <BODY background="image/backframe.jpg">
Either use single quotes for the background= or just leave the quotes off entirely. Also, unless name itself is defined as the proper numbered field, you'll not see a proper output from {$_POST[name]}. You *must* use a single or double quote for the [...] field for the key name of it. $_POST['name'] and $_POST["name"], and $_POST[0] and $_POST[204]. Hopefully this will help you see the problem and not repeat it. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > parse error *again |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|