Reply to Re: Viewing Hidden Form Fields

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация