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!

Trying to pass values on "disabled" form fields?

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
 
PS ;-)

My form fields are an array, e.g.

<input=&quot;text&quot; name=&quot;contacts[lastname]&quot; ...

It seems if any field of the array is &quot;enabled&quot; the entire array is passed to PHP, otherwise none of the array is passed.

Anyone else experience this and find a way around it?

Thanks folks.
Richard
 
PPS

Sorry, seems I was wrong. Only the &quot;enabled&quot; form fields are passed.

I', still stumped. Any Ideas?

Thanks.
Cheers,

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top