FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-27-1998, 04:03 PM   Postid: 15104
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
JavaScript --required fileds /forms

wanting to know what the script would be for required fields in (email) forms. I know it would this would go between the <head></head> tags.. and if the "name=" has a space between two words affects how this script is written.

Example :
<INPUT name="Your Name" size=40 Value="">

Please and thank you.
hearts is offline   Reply With Quote
Old 12-27-1998, 04:10 PM   Postid: 15105
 Deb
FutureQuest, Inc.
 
Deb's Avatar
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
Which form mail script are you using?

The requirements may vary a bit depending on the script...

Let us know

Deb
Deb is offline   Reply With Quote
Old 12-27-1998, 04:16 PM   Postid: 15106
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
mail script? I just typed the code for the form.. but I have no script. I just do not want to recieve a partially filled out form.

Here is what I found on the net.. but it didn't validate.. it said frm.name. was not defined.

Quote:
Place the following piece of Javascript code in your HTML FORM file between <head> & </head>.

Also, add ( onSubmit = "return validate()" ) to your <form> tag as shown below,

<form name="frm" action="your_file/mail address" onSubmit="return validate()">

The Javascript code is as follows. However, please tailor the code as per your needs.

============================================================

<script language="JAVASCRIPT">

function validate() {

if(frm.name.value == "")
{
alert("Please enter your good Name!!!");
return false;
}

if(frm.emailaddress.value == "")
{
alert("Please enter your e-mail address!!!");
return false;
}

return true;

}

</script>
i musta done something wrong
hearts is offline   Reply With Quote
Old 12-27-1998, 04:23 PM   Postid: 15107
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
duh.. i think I figured out my mistake.. maybe i just needed to see this code on a blue background..

I will give it a try
hearts is offline   Reply With Quote
Old 12-27-1998, 04:25 PM   Postid: 15108
 Deb
FutureQuest, Inc.
 
Deb's Avatar
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
Do you NEED to use JavaScript for this?

Have you considered just using the mailform we offer stock with your account? It would probably be a lot easier to setup and making sure fields are required is mega easy....

http://www.aota.net/CNC/ holds a lil auto script that will generate the basics for you and http://www.aota.net/Tutorials/ holds the docs for adding and expanding it's capabilities...

If you need the script you're trying to use now though I'll take a closer look and see if I can help..

Deb
Deb is offline   Reply With Quote
Old 12-27-1998, 04:31 PM   Postid: 15109
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
nope.. it didn't
awwwwwwwww.. heck.
hearts is offline   Reply With Quote
Old 12-27-1998, 04:33 PM   Postid: 15110
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
well.. i wanted to learn something.. not take the easy way out.. *if that makes sense*

should I just email you this?
hearts is offline   Reply With Quote
Old 12-27-1998, 04:38 PM   Postid: 15111
 Deb
FutureQuest, Inc.
 
Deb's Avatar
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
heh no.. email would get you less help rather then more help on this one...

We promise to support the server 'stuff' but can't promise to know all the languages people use to build their sites I'm not a javascript pro... So you're more apt to get the right help, here in the forums.

Do you have the script up on your site somewhere? (the url where I can see it broken at?)

Deb
Deb is offline   Reply With Quote
Old 12-27-1998, 05:46 PM   Postid: 15112
hearts
Visitor
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
hehehe.. thanks Deb.. but I found a script that was easier .. *cut and paste* .. *I love the right click of a mouse*

so much for learning something new!
hearts is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:17 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.