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

Problem with hidden fields and php

Status
Not open for further replies.

Qrosity

Technical User
Jan 9, 2008
14
ES
I'm using this innerHTML to fill a layer with a form, but when I send the form, hidden fields seem to be empty, any hints?
-------------------------------------------------------
var streetHTML = <input type='hidden' name='street' id='street' value'"+street2+"'><input name='city' type='hidden' id='city' value'"+city2+"'>";
document.getElementById(object).innerHTML = streetHTML;
-------------------------------------------------------
If I use document.write to display the values of street2 and city2 they are perfectly displayed, so values exist and are ok...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top