...

View Full Version : basics I can't seem to get



howardfan123
07-11-2008, 05:27 AM
i have a basic form that i want a pop box to come up saying thank you you request has been submited. how do i get that into this?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>email addresses for specials</title>

<form action="gdform.asp" method="post">
<p align="center">
<input type="hidden" name="subject" value="email address for specials">
<input type="hidden" name="redirect" value="INDEX.HTM">
</p>
<p align="center">
<input type= "hidden" name= "text" value="please sent me emails of the specials">
<input type="text" name="email">
</p>
<p align="center">
<input type="submit" name="Submit" value="SUBMIT" />
<input type="reset" name="reset" value="RESET" />
</p>
</form>

rangana
07-11-2008, 05:30 AM
<script type="text/javascript">
window.onload=function()
{document.forms[0].onsubmit=function()
{alert('Thank you. Your request has been submitted');}}
</script>

howardfan123
07-11-2008, 05:36 AM
do i put that before the action or in the middle of it?

rangana
07-11-2008, 05:46 AM
You can put it in the <head> or <body> section of your page. Ideal is in the <head>.

howardfan123
07-13-2008, 04:43 AM
Is that going to stop my form from redirecting to my home page or will it do both

rangana
07-13-2008, 03:48 PM
It will show a message saying "Thank You. Your request has been submitted", then submits your form. Nothing more, nothing less.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum