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 Coder
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    5
    Thanked 0 Times in 0 Posts

    User Imput to Variable

    Hi
    I am trying to set a users imput to a variable that can be used to add to the link to another page. I know about Post and Get but these do not fit my problem. I am trying to get a form response to show up in this lightbox http://particletree.com/features/lightbox-gone-wild/

    Can anyone help me set user imput to a variable?

    Thanks

  • #2
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    You can do 1 of two things:
    1. Go tho AJAX route
    2. try this:
    Code:
    document.getElementById('lightboxdiv').innerHTML = '<a href="' + document.yourform.inputname.value + '">Click here</a>';
    Replace lightboxdiv with your div id which holds the lightbox element.
    replace yourform with your form name
    replace inputname with the name for the input field

    Also... it's input not imput.


  •  

    Posting Permissions

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