Web Analytics Made Easy -
StatCounter forwarding contents from form fields - CodingForum

Announcement

Collapse
No announcement yet.

forwarding contents from form fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • forwarding contents from form fields

    Can anyone tell me how to get the contents of a form field to carry forward to another html page containing the same form field? E.g.:

    <input type="text" name="email">

    So if someone fills out their email address on one page and then gets forwarded to another page which again requires their email address, this field is already filled in from before.

    I'd be really grateful of some help!

    Thanks,
    Beck

  • #2
    document.form2name.email.value = window.opener.document.form1name.email.value

    To refere something from the opener, use

    window.opener
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    Comment


    • #3
      I'm having trouble defining the window.opener as a function - could you tell me how to do this please? Thank you!

      Comment


      • #4
        That code will work only if you both pages are open at the same time, meaning you open the next page in a new window. If the next page is opened in the same window, you have to pass the data through these ways.
        Glenn
        vBulletin Mods That Rock!

        Comment

        Working...
        X