View Full Version : Newbie: txt fld fills another txt fld?

11-22-2011, 01:16 AM
I'm trying to do a simple form where if a user fills in one form text field another test field will be filled in with the same info.

I thought just naming them the same would do it, but... nope!

Is there a simple way to do this in html?


11-22-2011, 03:24 AM
HTML is static. Static means you cant save data, in this case the text input by a user, and pass it to another page or again in this case a text field. You would need server side to save and pass the data to the next element. Then the id's or names you gave the text input fiels CAN be used as variables or storage place in memory to store the text and used to fill the next field.

Javascript could do this as well, but I never like relying soely on js, since users can turn it off in their browsers.