Javascript A thank you page with user name on it

Posted by Sarahfromnowhere on Stack Overflow See other posts from Stack Overflow or by Sarahfromnowhere
Published on 2012-10-25T04:49:33Z Indexed on 2012/10/25 5:00 UTC
Read the original article Hit count: 81

Filed under:

I have a form where a user input name and other contact information. I validate the input and then redirect to a thank you page. I wanted to personalize the page by having the user name appear as part of the thank you note. I tried document.getElementById(Name1).value to retrieve the value of the Name but it it is giving Undefined. Is there a way for me to set the value of the Name1 field to another variable that I call again to include it in my text message?

© Stack Overflow or respective owner

Related posts about JavaScript