login  Naam:   Wachtwoord: 
Registreer je!
 Forum

login tutorial flash php

Offline dennis77 - 01/03/2006 21:29 (laatste wijziging 01/03/2006 22:05)
Avatar van dennis77Nieuw lid Hallo,

ik heb het volgende probleem ik heb de login tutorial (using flash mx, php, and mysqL) gedaan van de site www.kirupa.com hij doet het als ik de press.swf oproep in de browser via www.dbron.nl/press.swf (name: test pass: test) , maar hij doet het niet als ik hem oproep via www.dbron.nl dan naar het menu news dan naar press.

De hele site bestaat uit lose movie clips, ik heb een index.swf waar ik twee movie's inlaad loadMovieNum("kaart.swf", 0);
loadMovieNum("menu.swf", 50);
de andere movie's die worden elke keer ingeladen op level 0 als je via het menu een pagina kiest.
ik ben er nu al twee dagen mee bezig maar kom er niet uit

mischien dat iemand er even naar kan kijken
alvast bedankt Dennis


actionscript:
Citaat:
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 and submit";
//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

verzend button
Citaat:
//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 = "Begin Login Process - Wait...";
//if you changed the php file name, change it here to!!
loadVariablesNum("newlogin.php", 0, "POST");
}
}


Citaat:
Opmerking door Haytjes:
Wil je de volgende keer code tussen [quote][/ quote]-tags zetten

3 antwoorden

Gesponsorde links
Offline TriX - 02/03/2006 10:04 (laatste wijziging 02/03/2006 10:04)
Avatar van TriX HTML interesse
  1. loadVariablesNum("newlogin.php", 0, "POST");


Klopt die naam wel? Of moet die newSlogin.php zijn?

Offline nielsvdwal - 02/03/2006 10:16
Avatar van nielsvdwal PHP gevorderde @haytjes: tussen quote's? een code kan je toch beter in code-tags neerzette..
Offline Ultimatum - 02/03/2006 10:25
Avatar van Ultimatum PHP expert wat valt hier nou te hightligten dan?

niet alle code is handig tusse code tags 
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2025 Sitemasters.be - Regels - Laadtijd: 0.173s