Re: Register Globals and Submit Buttons
From: Gordon Burditt (gordonb.1h1hp_at_burditt.org)
Date: 07/28/04
- Next message: Anders K. Madsen: "Re: Can't get $cnt++ to work"
- Previous message: Charles Sweeney: "Re: SOLVED: Valid XHTML with PHP sessions?"
- In reply to: Mark: "Register Globals and Submit Buttons"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 20:31:11 GMT
>We have developed an application with register_globals "On" and are
>now trying to convert it to run under "Off".
>
>I understand that a text field previously referred to as txtText must
>now be referred to as $_POST['txtText'].
Guess what? This refers to all the other variables you get from
a page, too.
>The problem we are hitting is with the PHP code that runs when a
>submit button is clicked. The application currently looks like this:
>
><input type="submit" value="Submit" name="cmdButton">
><input type="text" name="txtText" size="20" value="testing">
>
><?php
>
>if ($cmdButton)
>{
> echo "Text Value: ".$_POST['txtText'];
>}
>
>?>
>
>This works great with register_globals "On", but when "Off", it is not
>invoked when the button is clicked.
>
>Any suggestions?
$_POST['cmdButton']
Gordon L. Burditt
- Next message: Anders K. Madsen: "Re: Can't get $cnt++ to work"
- Previous message: Charles Sweeney: "Re: SOLVED: Valid XHTML with PHP sessions?"
- In reply to: Mark: "Register Globals and Submit Buttons"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]