So I've just learned how to create a form. When I submit the form, by whatever means, it opens up the 'action' web-page, but appends the address with the data submitted through the form.
Now, Say I create a page form.html and put this form onto it:
<form name ="form" action= "display.html" >
Enter input: <input type="text" name="input"> <br/> <br/>
<input type="button" value="Submit" name="button" onclick= "validate(form.input.value);">
<br/>
</form>
when the user enters their name as, say, 'john' and submits that they're redirected to: ..../display/?name=John
I've created display.html. How do I make it display something like " Welcome, John! " ?? when it's loaded?
thanks for your help!!
sorry, that form should read:
<form name ="form" action= "display.html" >
Name: <input type="text" name="name"> <br/> <br/>
<input type="button" value="Submit" name="button" onclick= form.submit();">
<br/>
</form>
Now, Say I create a page form.html and put this form onto it:
<form name ="form" action= "display.html" >
Enter input: <input type="text" name="input"> <br/> <br/>
<input type="button" value="Submit" name="button" onclick= "validate(form.input.value);">
<br/>
</form>
when the user enters their name as, say, 'john' and submits that they're redirected to: ..../display/?name=John
I've created display.html. How do I make it display something like " Welcome, John! " ?? when it's loaded?
thanks for your help!!
sorry, that form should read:
<form name ="form" action= "display.html" >
Name: <input type="text" name="name"> <br/> <br/>
<input type="button" value="Submit" name="button" onclick= form.submit();">
<br/>
</form>