> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, 27 December 2003 20:56 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] How New Is <<<HERE? > > > By "comment[ing] out line 11", I take it you mean making a comment of line > 11. I just did--as this problem woke me from a night's sleep at just past > 2:30 AM--and the error message is now: > > Parse error: parse error, unexpected $ in [path to file] on line 19 > > Where will this end? > > Steve > > Original Message: > ----------------- > From: Olwen Williams [EMAIL PROTECTED] > Date: Sat, 27 Dec 2003 18:25:00 +1300 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How New Is <<<HERE? > > > Comment out line 11 to checkj it's the cause of the proble. If the > error goes away then retype the line. I just tested this code and got > no errors. It could be a character that is not what it seems. > > [EMAIL PROTECTED] wrote: > > > Cesar, > > > > Sorry to have taken so long to answer. My day got complicated. Anyway, > > here's the code all over again, with the last changes I was advised to > > make. I took out the line spaces and added line numbers. But first, the > > latest error message: > > > > Parse error: parse error, unexpected T_VARIABLE in [path to file] on > > line 11 > > > > The code: > > > > 1 <html> > > 2 <head> > > 3 <title> > > 4 persistence demo > > 5 </title> > > 6 </head> > > 7 <body> > > 8 <h1>Persistence Demo</h1> > > 9 <form> > > 10 <?php > > 11 $txtBoxCounter = $_POST['txtBoxCounter']; > > --
For what it is worth, I cut and pasted your full html into a file. Under PHP version 4.3.1 It runs from the command line without fault. Apache 1.3.22 It runs without fault (increments properly). What text editor are you using? I saved the code as both Unix and DOS format and it works for both. I've attached my file for you to try. Hope it helps as I can't fault the code. Regards Grant Walters Brainbench 'Most Valuable Professional' for Unix Admin Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND Telephone: +64 4 4765175 OR 4762661, CellPhone 025488265, ICQ# 23511989 "Never argue with an idiot. They drag you down to their level, then beat you with experience."
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php