CH9pg255 $PHP_SELF Problem. Local Server
Ch 9, pg 255 Create User issue, $PHP_SELF function d/n work :(
It seems my local test server (IIS5) will not execute the
form action="<?php echo($PHP_SELF) ?>".
THIS IS WHAT HAPPENS-
When the page loads I get this error message:
"Notice: Undefined index: submit in C:\DreamweaverMX_PHP_Wrox\hotel\Untitled-3.php on line 3".
And if I submit the page I get a HTTP 405 error message.
THIS IS WHAT I'VE TRIED-
The 'if' control code works if the form POST's to a completely new page.
And the original code and form action="<?php echo($PHP_SELF) ?>" works
fine on my remote server.
the IIS execute permissions is set for scripts and executable.
Any suggestions?
Ned
|