Posted by J.O. Aho on 05/16/07 18:20
kenoli wrote:
> I have a script that submits form data via a "post" method to another
> script. I have an href link in the destination script that links back
> to itself for processing form data on that page with some "get" data
> appended to the URL. I noticed that after clicking on that link and
> sending the action back to itself, a check of isset($_POST) returns
> true while displaying the content of $_POST displays an empty array.
> I had expected isset($_POST) to return false, thinking the script
> would unset the $_POST array when the <a> link sent it back to
> itself. Instead, it leaves $_POST set but empty.
if you have a <input type="text" name="something" value=""> then test against
the something cell in the $_POST: isset($_POST['something'])
--
//Aho
[Back to original message]
|