Using java, I am trying to create a form to get a user's name, and then use this inserted name in a sentence, further down the page. So basically, "Welcome (name) to my page".
I have experimented with the basic code I know to use a form and extract data from the form - but I can't figure it out.
Any help with how I can use this form to complete a sentence using the user's name would be appreciated. These are my efforts so far.... (incomplete, obviously)
<form name="jacks"> Your name is: <input type="text"> <input type="submit" value="CONFIRM!"> </form> <script> var x = document.jacks.usersname.name; document.write ("Welcome" + x + "to my website") </script>