Reply to Re: Does type=hidden have to be in a <form> in php?

Your name:

Reply:


Posted by Tom on 06/05/07 16:35

If the form information is passed along in the web address, then your form
would be using the GET method. The hidden field types can be used with the
POST method, but aren't hidden with GET because the information display in
the URL.

If you setup for <form> tags using the post method so that your hidden
fields is hidden, I still think you can get the "id" using $_GET['id'].

Tom
--
Basic Accounts $5.95 / month or $39.95 / 12 months
http://newsguy.com/overview.htm



<joboils@hotmail.com> wrote in message
news:gm83631sd7fa90rnfjq644u9u663h9jj65@4ax.com...
> I am trying various versions of this piece of code -
>
> print("<input type=\"hidden\" name=\"table\" value='$TableName'>");
>
> (the $TableName is a variable, depending on which file it is in) and
> want to use it following a link -
>
> <a href=\"envelope_print.php?id=$Row[id]\">$Row[id]</a>
>
> so that the receiving file can use it like -
>
> $TableName=$_REQUEST['table'];
> $Query="SELECT * from $TableName where id='$id' ";
>
> but none of them work.
>
> I expect I'm doing something really stupid but I can't think what.
> I have session_start(); at the beginning of each file and
> register_globals() is On.
> Can anyone help, please?

[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

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