Help with HTML forms

Rulke

Can't get enough of FH
Joined
Dec 23, 2003
Messages
2,237
Is it possible to have a simple html form that returns the values in the same page as part of a larger string of text?

Here's an example:
Code:
<form>
First name:
<input type="text" name="firstname" />
<br />
Last name:
<input type="text" name="lastname" />
<input type="submit" value="Submit" />
</form>

That will create 2 boxes to enter first and last names and a submit button. Can I take that info and have a string of text below it thats something like

"First name is <first name> and the surname is <surname>"
 

SheepCow

Bringer of Code
Joined
Dec 22, 2003
Messages
1,365
Not with just HTML you can't. You'd need either JavaScript to do it at the browser end, or something server-side like PHP, ASP, JSP etc.
 

Rulke

Can't get enough of FH
Joined
Dec 23, 2003
Messages
2,237
I figured it might be something like that, way above my competence level then :/
 

Rulke

Can't get enough of FH
Joined
Dec 23, 2003
Messages
2,237
Cheeky git!

When they merge EU daocs servers with US I wanna duel your savage with mah skald!!
 

Users who are viewing this thread

Top Bottom