Help - Search - Members - Calendar
Full Version: Form Question
MonsterSmallBusiness Forums > MonsterCommerce > How do I?
krazykickz
Ok guys...

I have the forms up, but have a question. I am using monstersmile.gif's form mail.

1. How do I make the customer's email address appear instead of that cyberspace email? xxx@xxx.xxx

Thanks

innocent.gif sick.gif
ebeadstore
I think you need to name your field that accept email as "email".
krazykickz
Yeah I had it at the top and in the regular form..


Thanks!

Works like a charm
ultimatekeychains
I actually use a script to validate that the customer entered a email address and that it's a valid format. Also makes sure that they've put something in the other fields. Keeps those blank messages from showing up that you can't respond to smile.gif

Also, it sends the visitor to a custom page once they submit the form.

Below is the code used with the form
Form fields used in the example are realname, email, inquiry. However, you can change them or add more. Just follow the same format.

CODE

<script language="JavaScript">
<!--
var url="/index.asp?PageAction=Custom&ID=#";
function champsok()
{
if (document.formu.realname.value.length == 0)
{
alert("Please enter your name.");
return false;
}
if (document.formu.inquiry.value.length == 0)
{
alert("Please enter your question.");
return false;
}
if ((document.formu.email.value.length == 0)||(document.formu.email.value.indexOf('@',0)==-1)||(document.formu.email.value.indexOf('.',0)==-1))
{
alert("Please enter a valid e-mail address.");
return false;
}
document.location=url;
return true;
}
//-->
</script>


You can view a sample here:
http://www.ultimatekeychains.com/index.asp...ction=CONTACTUS

Try leaving a blank field or enter a email address without the @ or . to see it respond.

Hope this is helpful to some of you biggrin.gif
krazykickz
Thank Ultimate!

I will be using this for sure!

biggrin.gif
Todd Patterson
Krazy (or anyone else for that matters)--

Can you expand on what the form mail is, how we use it and where it is at?

Right now I have been creating the forms by hand invidiaully (so I have something like 22 pages of forms and response forms) that if there is an easier way (there has got to be -- this is a royal pain....) I would really like to hear about it.

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.