The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Obviously I don't need to say the form should be called form1 ect. But it doesn't work at all. Can anybody spot what's wrong with it?
Thanks in advance
Rickoss
Cheers.
> Damn it, can't be bothered with this validation script, nothing seems
> to work. I thought that PHP one would but I don't know how to call
> alert() functions on PHP. :\
PHP is server side, JavaScript is client side. You need a client side script to load an alert. If you upload the page with the JavaScript you have got, I will have a look and tell you what is wrong....
Cheers
if(document.form1.txt2.indexOf("@")== -1){
alert('Invalid E-Mail Address \n Please Retry')
return false;
}
Delete one and see if its any better.
HTML: