Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Register Globals and Submit Buttons
July 28, 2004, 6:16 pm
rate this thread
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'].
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">
echo "Text Value: ".$_POST['txtText'];
This works great with register_globals "On", but when "Off", it is not
invoked when the button is clicked.