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']; 12 $hdnCounter = $_POST['hdnCounter']; 13 //increment the counters 14 $txtBoxCounter++; 15 $hdnCounter++; 16 print <<<HERE 17 <input type = "text" 18 name = "txtBoxCounter" 19 value = $txtBoxCounter> 20 <input type = "hidden" 21 name = "hdnCounter" 22 value = $hdnCounter> 23 <h3>The hidden value is $hdnCounter</h3> 24 <input type = "submit" 25 value = "click to increment counters"> 26 HERE; 27 ?> 28 </form> 29 </body> 30 </html> --------------------------------------------------------------------------- Please post your code from line 30 to 40. Place a mark in line 34. =) -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php