PDA

View Full Version : Cgi question


stevan
01-15-2003, 01:17 PM
I am using a form that is on my site

Thsy have to put there email adress in my hand Well we all know that mistakes happen

Is there a way to grab the email adress automatic ???

I have tried a email check scrip but it they cannot realy check it


Here is what it starts with

<form action="http://207.235.6.119/cgi-bin/nmail.pl"; method="POST">
<input type=hidden name="to" value="info@cruisewarehouse.cc">
<input type=hidden name="redir"
value="http://www.cruisewarehouse.cc/html/thanks.html">;

Thxs STeve

Philip M
01-16-2003, 06:37 PM
If you mean can the user's email address be entered into your form automatically, then the answer is no.

Although the email address entered can be checked for syntax validity, it can of course still be incorrect (e.g. mis-spelled). There is not a lot that can be done about this, except to warn the user of the importance of getting it right if his form is to be handled correctly.

You can improve things with a short script like this:-

function alertemail (which){
if (confirm("You entered \""+which.value+"\" as your email address. Are you quite sure that it is correct? If not, we won't be able to acknowledge your order or contact you if any problems arise. Please check it carefully!"))
return true;
else{
which.focus();
return false;
}
}

stevan
01-16-2003, 07:15 PM
So the only way to be sure is use a script that launches a outlook window like i have on my join my mailing list

BUT can a script like that be used on a form ?????

Thxs steve