Re: Self calling form not working.



Rik wrote:
carlton wrote:

I have tried to run this simple self calling script, but each time it
calls its self I always get the "Value of guess not set." message.
Any ideas on the problem?


if (!isset($guess))


<FORM ACTION="selfcall.php" METHOD="POST">
Type our guess here:<INPUT TYPE="TEXT" NAME="guess">
</FORM>


You probably have either an old book or at least an old example (we hope
so):
http://nl3.php.net/manual/en/security.globals.php

The value should be accessed like $_POST['guess']

Grtz,
Changes all $guess to $_POST['guess'] and everything works fine.
The example was from 1998, and obviously not best practice. Thanks for the tip.
Carlton
.