Ralla
10-26-2005, 12:48 PM
Hi, I have a form with some fields called name, email and zipcode. These data are saved in a mysql database via some php scripts. It's for a competition, so people should only be able to sign up once with their email adress. But I can't figure out how this should be checked in the database.
Here is the validation:
if (navn == null) {
gotoAndPlay(1);
navn = "Skriv dit navn";
} else if (zip == null) {
gotoAndPlay(1);
zip = "Skriv dit postnummer";
} else if (email == null) {
gotoAndPlay(1);
email = "Skriv din email";
} else {
gotoAndPlay("post");
};
And here is the post action:
loadVariablesNum("post.php", 0, "GET");
I tried working with LoadVars.sendAndLoad, but couldn't make it work... any help will be great!
Here is the validation:
if (navn == null) {
gotoAndPlay(1);
navn = "Skriv dit navn";
} else if (zip == null) {
gotoAndPlay(1);
zip = "Skriv dit postnummer";
} else if (email == null) {
gotoAndPlay(1);
email = "Skriv din email";
} else {
gotoAndPlay("post");
};
And here is the post action:
loadVariablesNum("post.php", 0, "GET");
I tried working with LoadVars.sendAndLoad, but couldn't make it work... any help will be great!