PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 5th, 2002, 10:22 PM
sli sli is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 sli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>";

Reply With Quote
  #2  
Old November 5th, 2002, 11:09 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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>";

Reply With Quote
  #3  
Old November 6th, 2002, 10:12 AM
Colonel-Panic Colonel-Panic is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 39 Colonel-Panic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #4  
Old November 6th, 2002, 09:04 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > parse error *again


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway