Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Newbie: txt fld fills another txt fld?

    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?

    Thanks!

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,333
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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.
    Teed


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •