getElementById

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nigel

    getElementById

    I have a javascript based form that has information stored in
    document.getEle mentById('name' ).innerHTML

    When I submit the form to the next page how do i get this information out of
    the POST?



  • Shawn Wilson

    #2
    Re: getElementById

    Nigel wrote:[color=blue]
    >
    > I have a javascript based form that has information stored in
    > document.getEle mentById('name' ).innerHTML
    >
    > When I submit the form to the next page how do i get this information out of
    > the POST?[/color]

    You could set a hidden variable to document.getEle mentById('name' ).innerHTML as
    the user submits the form. There's no way to POST information from a DIV or
    something - POST only sends HTML form elements (input, select, textarea, etc.).

    Regards,
    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com


    I have a spam filter. Please include "PHP" in the
    subject line to ensure I'll get your message.

    Comment

    Working...