Newkirk Posted April 1, 2006 Share Posted April 1, 2006 How would I set up multiple prompt boxes other than just one like: <html><head><script type="text/javascript">function disp_prompt(){var name=prompt("Please enter your name","")if (name!=null && name!=""){document.write("Hello " + name + "! How are you today?")}}</script></head><body><form><input type="button" onclick="disp_prompt()" value="Display a prompt box"></form></body></html> Link to comment Share on other sites More sharing options...
Siddhesh Posted April 1, 2006 Share Posted April 1, 2006 Is this the thing you want?? <html> <head> <script type="text/javascript"> function disp_prompt() { var name=prompt("Please enter your name","") var Age=prompt("Please enter your Age","") if (name!=null && name!="") { if (Age != null && Age != "") { document.write("Hello " + name + "! Your age is "+ Age); } } } </script> </head> <body> <form> <input type="button" onclick="disp_prompt()" value="Display a prompt box"> </form> </body></html> Link to comment Share on other sites More sharing options...
Newkirk Posted April 1, 2006 Author Share Posted April 1, 2006 Yes. Thank you. Very appreciated. Link to comment Share on other sites More sharing options...
Newkirk Posted April 1, 2006 Author Share Posted April 1, 2006 Now how would I make it so that it sends the outocome to someone via e-mail? Link to comment Share on other sites More sharing options...
scott100 Posted April 1, 2006 Share Posted April 1, 2006 process the form with php and have it send the detailshttp://www.w3schools.com/php/php_forms.asphttp://www.w3schools.com/php/php_ref_mail.aspthere is also a cheap n nasty way http://www.w3schools.com/html/tryit.asp?fi...yhtml_form_mail but i wouldnt recommend it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now