I am trying to create a simple html form which asks for some details from a user and once this has been submitted will add the text to some predetermined text in a text box.
Example of this...
Text box 1 - Enter Name
Text box 2 - Enter Age
Text box 3 - Enter Location
When this is submitted I would like this to be added preferably into a text box or even just output has text on an html page with other text already stored so the output would maybe be something like "Hello John, you are 25 years old and from London".
What I have is very basic:
<html>
<form>
Name: <input type="text" name="name"><br>
Age: <input type="text" name="age"><br>
Location: <input type="text" name="location"><br>
<input type="submit" value="Submit">
</form>
<html>
Beyond this I'm unsure how to get all the values into another text box with the other predetermined text.
Any help or direction in this would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…