Posted by J.O. Aho on 07/29/07 16:38
Ronald Schow wrote:
> When I specify a hidden field on the form page, I'd like to see the
> contents of that field on the target page. I'm not having any luck with
> this. I can see the contents of every field except the hidden one. What's
> the trick?
Hidden inputs works in the same way as all other inputs, as long as you have a
name and value, the data will be sent to the processing script.
--- form.html ---
<form action"nextpage.php">
<input type="text" name="visible" value="">
<input type="hidden" name="invisible" value="something">
<input type="submit">
</form>
--- eof ---
--- nextpage.php ---
echo "The visible input field: ".$_REQUEST['visible']."<br>";
echo "The hidden input field: ".$_REQUEST['invisible']."<br>";
--- eof ---
As you see no difference, and this applies to other script languages too.
--
//Aho
[Back to original message]
|