![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
|
quick hahahahahahahahahaha question
<!--
//define the function function checkForm(formName) { //state that contactinfo is each feild on the form for( var contactinfo = 0; contactinfo < document.forms[formName].elements.length; contactinfo++) //if any fields are blank if ( document.forms[formName].elements[contactinfo].value hahahaha '' ) { document.forms[formName].elements[contactinfo].focus(); //alert the user which fields they did not fill out alert( 'Please fill in your ' + document.forms[formName].elements[contactinfo].name ); } } //--> im using this like this >> form name="form" action="mailto:[email protected]" method="post" OnSubmit=checkForm("form") so - when i click submit it goes through and it alerts what fields are missing input but what do i need to do to make it so if the alert comes up it stops and doesn't submit!? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
|
ugh it didnt show up
here it is !-- //define the function function checkForm(formName) { //state that contactinfo is each feild on the form for( var contactinfo = 0; contactinfo < document.forms[formName].elements.length; contactinfo++) //if any fields are blank if ( document.forms[formName].elements[contactinfo].value hahahaha '' ) { document.forms[formName].elements[contactinfo].focus(); //alert the user which fields they did not fill out alert( 'Please fill in your ' + document.forms[formName].elements[contactinfo].name ); } } //-- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2003
Posts: 2,868
|
hit me up on icq at 237842929 you cannot have the action mailto, who the hell told you that?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
Take away the submit button and just use a regular button. Put the onClick() event on the regular button and label the button "submit".
SpaceAce |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
|
space ace i tried that, will you please icq me?? i need to have this done fast for school i can go back and actually learn it later
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
|
nevermind i just did something (not quite sure what) and its working now
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: USA
Posts: 4,452
|
wait a minute where do i actually have it submit the form though???
|
![]() |
![]() ![]() ![]() ![]() ![]() |