Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blocking a field on a Form from being sent

Status
Not open for further replies.

Killborg

Technical User
Jul 16, 2007
46
US
I have hidden field on a form. I do not
want the information in this field to be sent.
How can I stop this from happening.

<input name="thelength" type="hidden" id="thelength" value="7" /></td>

Art
 
disabled attribute


____________ signature below ______________
I am Tedward Keyboardhands!!!
You are a amateur developer until you realize all your code sucks.
Jeff Atwood

 
Sorry,
Nevermind my last post. It took me a couple of minutes
too get my brain in gear.

Thanks for the help.
 
This may not be appropriate to what you are doing but you could unset it at the script receiving it (assuming there is one).

Code:
unset($_POST['thelength']);

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top