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!

Help with form fields please!

Status
Not open for further replies.

rhowes

IS-IT--Management
Jun 6, 2001
140
ZA
Hi

I am trying to pass variables from a form on submit(). The problem is I use JavaScript to set some of the fields to "disabled" and these fields are not passed to PHP on submitting the form.

Is there any way to get these variables to be passed correctly?

Thanks in advance.
Cheers

Richard
 
Have you tryed to do something like

document.name_of_form.elements[name_of_field].value=value_it_has

when you disable something?

Legend: name_of_form - The name you put in your form tag
name_of_field - the name of the field being disabled
value_it_has - the value it has in that moment?

I did not tested this solution, it's only something to help you in this moment.

Other solution you have is the use of cookies, it's not a hard thing to do, but you are restricted in size and in 20 vars. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top