Okay, everyone, here's some real progress.

I retyped the file from scratch. I'm both attaching it--it's not a big
file--and printing it below:

<html>
<head>
<title>persistence demo</title>
</head>
<body>
<h1>Persistence Demo</h1>
<form>
<?php

$txtBoxCounter = $_POST['txtBoxCounter'];
$hdnCounter = $_POST['hdnCounter'];

//increment the counters
$txtBoxCounter++;
$hdnCounter++;

print <<<HERE

<input type = "text"
name = "txtBoxCounter"
value = "$txtBoxCounter">

<input type = "hidden"
name = "hdnCounter"
value = "$hdnCounter">

<h3>The hidden value is $hdnCounter</h3>

<input type = "submit"
value = "click to increment counters">

HERE;

?>

</form>
</body>
</html>

My results were mixed, but definitely moved me forward.

The H1 head--Persistence Demo--displayed, as did a field with the number
"1" in it.

After a blank line was printed "The hidden value is 1".

That was followed by another blank line space, and then a button with
"click to increment counters in it".

When I click the button, I get a box dropping down that says the info I've
entered "is to be sent over an unencrypted connection" and could be read by
others, and do I still want to send it. I click "Continue", and that box
disappears.

There ends my success. I'm left with:

The H1 head--Persistence Demo--displayed, and the number "1" in it.

The blank line followed by "The hidden value is 1".

The other blank line space, and then the button with "click to increment
counters in it".

No seeming advance to the counters.

Whattaya think?

Steve Tiano

--------------------------------------------------------------------
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

Reply via email to