Welcome Guest, Not a member yet? Register   Sign In
Problem with hidden field
#1

[eluser]leonglass[/eluser]
I have a problem with a hidden field not showing up in the $_POST variable.
Code:
<input type="hidden" name="name" value="value" />
When I attempt to read this variable in the script ($_POST['name']) it is not there. However there are two other input fields (text and text area) in the form that are there and they are not hidden. Does anyone have any idea as to why the hidden field is not showing up in the $_POST variable. If it makes any difference I am trying to create an input form much the same as the one I am entering this post with. I have TinyMce installed to convert the textarea.
#2

[eluser]Phil Sturgeon[/eluser]
Try making this one a normal input. If that still doesnt work try setting the id field. I've had weird errors with things like this before, i just faff until they go away.
#3

[eluser]leonglass[/eluser]
I found that moving the hidden field above my button fields did the trick. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB