stop();
//stops the movie on the login page
userinput.restrict = "a-zA-Z0-9";
passinput.restrict = "a-zA-Z0-9";
//this will make it so the user can't use symbols
//that could mess with your database
Selection.setFocus(userinput);
//this puts the cursor in the first box (thaks Kax!)
status = "Enter your information";
//this enters in directions in your textbox called status
this.onEnterFrame = function() {
if (_root.checklog == 1) {
_root.gotoAndStop(2);
}
if (_root.checklog == 2) {
_root.gotoAndStop(3);
}
};
//the onEnterFrame constantly checks to see if the PHP
//script has sent the variable 'checklog' back to the
//movie and directs the people accordingly
stop();
//stops the movie on the login page
userinput.restrict ="a-zA-Z0-9";
passinput.restrict ="a-zA-Z0-9";
//this will make it so the user can't use symbols
//that could mess with your database
Selection.setFocus(userinput);
//this puts the cursor in the first box (thaks Kax!)
status ="Enter your information";
//this enters in directions in your textbox called status
this.onEnterFrame =function(){
if(_root.checklog ==1){
_root.gotoAndStop(2);
}
if(_root.checklog ==2){
_root.gotoAndStop(3);
}
};
//the onEnterFrame constantly checks to see if the PHP
//script has sent the variable 'checklog' back to the
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>") {
//checks to see if there is something in both the name
//and password
if (user != "" && pass != "") {
status = "Login, please wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("login.php", 0, "POST");
}
}
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>"){
//checks to see if there is something in both the name
//and password
if(user !=""&& pass !=""){
status ="Login, please wait...";
//if you changed the php file name, change it here to!!
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>") {
//checks to see if there is something in both the name
//and password
if (user != "" && pass != "") {
status = "Login, please wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("login.php", 0, "POST");
}
}
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>"){
//checks to see if there is something in both the name
//and password
if(user !=""&& pass !=""){
status ="Login, please wait...";
//if you changed the php file name, change it here to!!
hmm, net getest met flash player 6, 7 en 8, maar dat , keyPress "<Enter>" werkt bj mij nergens, je kan er wel op klikken, dat werkt wel, maar de entertoets niet
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>") {
//checks to see if there is something in both the name
//and password
if (user != "" && pass != "") {
trace(user);
trace(pass);
status = "Login, please wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("login.php", 0, "POST");
}
}
//this will be the action to get your variables from the PHP
on (release, keyPress "<Enter>"){
//checks to see if there is something in both the name
//and password
if(user !=""&& pass !=""){
trace(user);
trace(pass);
status ="Login, please wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("login.php",0,"POST");
}
}
en dan op de knop klikken ook, en niet alleen genoegen nemen met de enterknop
edit: Als die dus niks outputten (als je published en test, dus niet via een webserver) dan heb je de textvakken geen juiste varnamen gegeven.
Dan moet je je textveldjes waar je je naam en wachtwoord ingeeft een var naam geven, de ene moet user heten en de andere pass.
Want wat je met bovenstaande code deed was de input van je textvelden nakijken, wat ik wel raar vind is dat je helemaal bovenin in je inleiding aangeeft dat userinput en passinput de texvelden zijn...hebben die mischien geen variabelnamen ?
Als die geen varnamen HOREN te hebben, dan ontbreekt er een stukje code die de user en pass input omzet naar variables.
Maar ik ga niet regeltje voor regeltje vragen hoe of wat, ga gewoon ALLES tracen wat er te tracen valt, en zie waar het fout gaat, kom dan nog maar eens