Re: How New Is <<<HERE?
| From: | stiano@optonline.net | Date: | Fri, 26 Dec 2003 23:58:29 +0000 |
| Subject: | Re: How New Is <<<HERE? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173348@lists.php.net to get a copy of this message | ||
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/ .