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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent information being sent on a form

Status
Not open for further replies.

Killborg

Technical User
Jul 16, 2007
46
US
Hello
I have a three text fields I use on a form. But when I submit the form the information in the field is sent. How do I prevent the information being sent. What do I need to change and where do I change it.

Here is the three text fields.

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

<input name="Optional" type="text" id="Optional" size="65" />

<input name="Product Description" type="text" id="Product Description" size="65" />
 
Why would you want to have a field on your form you do not want to send? If you don't want to send it, don't include it. If you don't want to send it, but do want to display it, don't use the input field -- use a paragraph or something. If you really need to use input field (no idea why you would though), you can use [tt]disabled="disabled"[/tt] attribute on it. This will prevent information in the field to be sent with the form.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top