submit button on html to output result on same page
Posted
by
amateur
on Stack Overflow
See other posts from Stack Overflow
or by amateur
Published on 2011-03-09T00:02:55Z
Indexed on
2011/03/09
0:10 UTC
Read the original article
Hit count: 159
Hi,
Although this seems like something very basic, but no matter what I tried I couldn't get my head around it. Basically I want a html form where a user types in their ID number in an input text box and when they hit the submit button it displays their email address which is their company ID number @ company.com, such as below
<form action=""> ID Number: <input
type="text" name="idnumber" /><br/>
<input type="submit" value="Whats my
email address" /> </form> <p>Your
email address is
'idnumber'@email.com</p>
Can this even be done using html or would I need to use Javascript or PHP for it?
Thanks
© Stack Overflow or respective owner