[thelist] redirect email validate
Dan McCullough
dmccullough at garnethill.com
Mon Jul 26 13:03:45 CDT 2004
Okay so some of you remember my iframes email, well I have been boncing
a few other ideas around.
One of them is using my currect JavaScript email validation script to
push the URL and redirect back to the correct page.
<script type="text/javascript">
function checkErrors(theForm){
for(i=0; i < theForm.length; i++){
if(theForm.elements[i].name == "email_address"){
var x = theForm.elements[i].value;
var filter =
/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(x)){
alert('Please enter a valid email address')
theForm.elements[i].focus()
return false
}
}
}
return true
}
</script>
so in here I need to send a the email address in a URL string
http://www.somedomain.com/server/campaign?id=987&email_address=re@re.com
meanwhile I need that to go quietly and need the page to refresh.
Any thoughts?
More information about the thelist
mailing list