Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form validiation!

Status
Not open for further replies.

HuggerFanta

Technical User
Apr 22, 2002
87
SE
Hello Tek-Tips users!
I´m creating an online form application and need to validiatre if input fields are used or not and if they contains a valid e-mail adress and text in every field.

Is ther any one that could help me to find info or a tutorial about this???? --------------------------------------
Kind regards;
HuggerFanta
 
In the first frame of your clip or movie that your input form is in set yyour text boxes to:

topic = "";
mail = "";
sugg = "";

or whatever there names are accordingly..

In your button that submits your input check to see if your fields have content:

on (press) {
if (topic != "" && mail != "" && sugg != "") {
// submit the content
mess = "Topic: "+topic+"\n"+"E-mail: "+mail+"\n"+"Info Request: "+sugg;
play();
} else {
// goto error frame
gotoAndStop(6);
}
}

Set up and error frame that will display a message telling the user they missed something..I'm not really sure how to check it to see if it's and actual email address or not..Should have something to do with checking for the "@" symbol..The script above just checks the fields for any content at all..

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top