brettbrewer.com

Programming + Design

Home
PHP $_REQUEST variables not showing up when you submit your form? PDF Print E-mail
Written by Brett Brewer   
Thursday, 29 March 2007
Had an annoying little problem with some variables I submitted to a PHP script now showing up in any of the $_REQUEST, $_POST or $_GET arrays. After an hour or so of head scratching and echoing, and print_r-ing, I figured out that my form had some duplicate form elements with identical names and IDs. This seems to have caused Firefox to completely lose MOST, but not all of the form submission. I didn't delve much further to find out what exactly was going on, I simply fixed my form and the problem went away. Strange though. It seems like the last instance of the duplicate form element on the page should have simply overridden any previous values, but not cause the loss of other variables. I didn't test in IE, so it may only be a Firefox 2.0.0.3 issue. 
 
< Prev   Next >

Search

Who's Online

We have 10 guests online

© 2017 www.brettbrewer.com
Joomla! is Free Software released under the GNU/GPL License.