Try
if(!isset($submit) {
... //display the form
} else {
// process the form
...
}
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 8:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] Bug #13039: $submit (form) variable doesn't work
>
>
> From: [EMAIL PROTECTED]
> Operating system: Windows 2000
> PHP version: 4.0.6
> PHP Bug Type: Arrays related
> Bug description: $submit (form) variable doesn't work
>
> I have a problem with a page that writes a form on page. What
> is unusual
> though is that it tries to identify if the form has been
> submitted or not.
> The script I am basing my work on is presumably made for an older PHP
> version. And I cant get it my version 4.06 on IIS 5.0 (win2k) to work.
>
>
>
> Any ideas??
>
>
>
> if(!$submit)
>
> {
>
> // form not yet submitted, display form
>
>
>
> <form action="<? echo $PHP_SELF; ?>" method="post">
>
> <p>
>
> <ul>
>
> <li>with skills matching the keywords
>
> <input type=text name=skills size=35>
>
> </ul>
>
> <center>
>
> <input type="submit" name="submit" value="Search">
>
> </center>
>
> </form>
>
> <?
>
> }
>
> else
>
> {....
> --
> Edit bug report at: http://bugs.php.net/?id=13039&edit=1
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]