Forum Moderators: coopster

Message Too Old, No Replies

T Variable error

         

red1982

7:16 pm on Sep 9, 2007 (gmt 0)

10+ Year Member



I'm not that familar with PHP but have to build an order form using it. Below is the code for the site. I keep getting a "Parse error: parse error, unexpected T_VARIABLE in /web/ellisgra/public_html/outback_orderform3.php on line 11" error. Do you know why this is occuring? Also, if you see any additional issues with my code, I would appreicate the feedback.

THANKS!

Line 11:
$Storenumber = Trim(stripslashes($_POST['StoreNumber']))

[edited by: eelixduppy at 11:50 pm (utc) on Sep. 9, 2007]
[edit reason] removed excess code dump [/edit]

cameraman

8:05 pm on Sep 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, red1982!
You might want to have a look at the TOS [webmasterworld.com] - specifics like the company names you've included in your code are not allowed. You might also want to take a look at this forum's charter [webmasterworld.com] - it's better to post as little code as possible, isolating it to the parts that you think have trouble, so it's easier to look at - although some people may read through all of it, many won't.

You need a semicolon at the end of this line:
$Storenumber = Trim(stripslashes($_POST['StoreNumber']))