php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13039 $submit (form) variable doesn't work
Submitted: 2001-08-29 13:48 UTC Modified: 2001-08-29 14:04 UTC
From: jasper at rci dot tmfweb dot nl Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2001-08-29 13:48 UTC] jasper at rci dot tmfweb dot nl
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
{....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-29 14:04 UTC] jeroen@php.net
See php.net/support.php for support questions.

This makes no sense, $submit is never setted in your script...
 [2002-05-01 16:23 UTC] ppoyet at cvm dot qc dot ca
I have the same problem
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu May 23 14:01:34 2019 UTC