Forum Moderators: coopster

Message Too Old, No Replies

HTTP_POST_VARS['name']?

         

fukchai2000

4:45 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Hi guys, just wanna find out....if we have this <input> field:

<input type=text name=someName value='SomeValue' disable=true>

by the time it is sent back to server, what is the value of:

$HTTP_POST_VARS['someName'] =?

i always get an empty value outta it.....is there any other way....somehow can parse the value to $_POST?

maxi million

6:39 am on Aug 19, 2005 (gmt 0)

10+ Year Member



i am not sure why u have this "disable=true". its purpose is to send the content of that textbox as empty. thats why u get empty value.
if u want to make the textbox but dont want anyone to write anything in it and pass the value u have alredy given replace disable=true with READONLY.

mcibor

6:57 am on Aug 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Moreover since php4.1.0 use $_POST. Variables provided to the script via HTTP POST. Analogous to the old $HTTP_POST_VARS array (which is still available, but deprecated).

Best regards
Michal Cibor