Ti sei perso il VI Convegno gt? Forse puoi rimediare... www.convegnogt.it X Chiudi
 
Forum GT: Condividiamo idee e conoscenza Forum GT: Condividiamo idee e conoscenza


Condividi questo contenuto nei Social Network:
Ti stiamo aspettando: Registrati subito e gratis. Entra a far parte di una delle comunità più attive in Italia. Se hai dimenticato i tuoi dati li puoi recuperare subito.


Vai indietro   Forum per Webmaster: Condividiamo Idee e Conoscenza > Sviluppo e Gestione siti web > Flash & ActionScript
Benvenuto! Forum Regole FAQ Lista utenti Calendario Segna come letti

Flash & ActionScript Animazione web e linguaggio di programmazione

Hey Amico Visitatore,
Condividi con noi le tue idee e la tua conoscenza Aprendo una nuova discussione nella sezione Flash & ActionScript


Rispondi
 
LinkBack Strumenti di discussione
Vecchio 26-08-07, 18:11   #1 (permalink)
User Newbie
 
Data di registrazione: Aug 2007
Messaggi: 9
Question Disperato Aiuto

Cioa ragazzi! Sono il nuovo dispetato amico!!! Ecco il mio problema...

Io sto usando questo Login And Password per poter vedere la solita pagina protetta... fino qui tutto ok, usando le pagine asp fra di loro...

Ma adesso io voglio cambiare tutto e usare queste pagine asp solo con flash, e ci sono riuscito a collegare tutto ok fra flash-asp e database. Il problema che mi trovo adesso, e non ci riesco a risolverlo e il seguente.

non riesco a far riconoscere i dati che mando da flash a asp e a sua volta la pagina asp quando riceva i dati mi sposti il swf dal frame1 al frame2 se non e il login gusto, e se e gusto frame3. Inoltre la pagina asp va sempre alla page error.asp

Grazie mille, sono disperato...




Quiesto e il file

ASP::::::::::::::::::::::::::

<%
Dim MyLogin
Set MyLogin = Server.CreateObject("ADODB.Connection")
ConnStr = "DRIVER={Microsoft Access Driver (*.mdb)}; "
ConnStr = ConnStr & "DBQ=" & Server.MapPath("/mdb-database/mailinglist.mdb")
MyLogin.Open(ConnStr)
SQLtemp = "SELECT * FROM CustPassword WHERE login = '" & Request.Form("username") & "' "
Set rs = MyLogin.Execute(SQLtemp)
while not rs.eof
dim Your_Name
Your_Name = rs("FirstName")
dim Date_In
Date_In = rs("Entry_Date")
response.cookies("remain") = Your_Name
response.cookies("still") = Date_In
If Request.Form("username") = rs("login") AND Request.Form("userpassword") = rs("Password") Then
Response.redirect("ok.asp")

Else
Response.redirect("error.asp")

End If
rs.MoveNext
Wend
OnError Response.redirect("error.asp")

rs.Close
MyLogin.Close
set MyLogin = Nothing
%>



Flash::::::::::::::::

stop();
//sets arrow visibility to nothing
red1._visible = false;
red2._visible = false;
//sets box 3 to be able to take numbers only
//box3.restrict = "0-9";
//functions for when mouse is clicked
//on the text boxes - deletes the content
box1.onSetFocus = function() {
box1.text = "";
red1._visible = false;
};
box2.onSetFocus = function() {
box2.text = "";
red2._visible = false;
// function for submit button
//checks whether there is more than 3 characters in the input box
//it will only progress till each field is filled in correctly
//3rd box is numbers only
submit_mc.onRelease = function() {
if ((box1.text == null || box1.text == "" || box1.length<3) or (box1.text == "Please type your name") or (box1.text == "Please type in your name")) {
box1.text = "Please type in your name";
red1._visible = true;
} else {
if ((box2.text == null || box2.text == "" || box2.length<3) or (box2.text == "Please type your email") or (box2.text == "Please type in your email")) {
box2.text = "Please type in your email";
red2._visible = true;
} else {
if ((box1.length>=3) && (box2.length>=3)) {
loadVariablesNum("http://www.site.net/password3/check.asp", 0, "POST");
username = "";
userpassword = "";
} else {
//UserOnline
myData = new LoadVars();
//loadVars onLoad handler
myData.onLoad = function(succes) {
if (succes) {
Text.htmlText = this.risultato;
//Title_php is instance name
} else {
trace("Error loading data");
}
};
//now load script
myData.load("http://www.site.net/password3/check.asp");
submit_mc._alpha = 50;
submit_mc.enabled = false;
delete onSetFocus;
}
}
}
};
};


Se puo essere utile vi do il vechi form in html, cosi capite meglio il grosso problema che ho...

Html:::::::::::::::::::::::


<html>
<head>
<title>First Time</title>
</head>
<body background="glacier.gif">
<i>
<h3 align="center"><font color="#8000FF"><u>WELCOME</u></i></h3>
</font>
<table WIDTH="600" ALIGN="center" BORDER="0" CELLSPACING="3" CELLPADDING="3">
<tr>
<td><form action="check.asp" METHOD="post">
<table BGCOLOR="Gold" BORDERCOLOR="violet" ALIGN="center" BORDER="2" CELLSPACING="0"
CELLPADDING="4">
<tr>
<td ALIGN="center"><table align="center" bgColor="#8000FF" border="1" cellPadding="3"
cellSpacing="3">
<tr>
<td colspan="2" align="center" bgcolor="violet"><font face="Arial" size="2"
color="#ffffff"><b>PLEASE ENTER NAME AND PASSWORD!</b></font> </td>
</tr>
<tr>
<td align="right"><font color="white" face="Arial" size="2"><u><b>Email:</b></u></font></td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td align="right"><font color="white" face="Arial" size="2"><u><b>User Password:</b></u></font></td>
<td><input type="password" name="userpassword" size="10" maxlength="10"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="login">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="CANCEL" OnClick="windows.history.back"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<center><h2>&nbsp;</h2>
</center>
</body>
</html>
albertusa non in linea  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Segnalo this Post!OKNO this Post!
Rispondi citando
Vecchio 26-08-07, 18:43   #2 (permalink)
Esperta
 
L'avatar di Onsitus
 
Data di registrazione: Oct 2006
Ubicazione: RM
Messaggi: 2,953
Mi dispiace ma non ne ho idea con ASP.

Se proprio devo usare un altro linguagio sara PHP come in questo tutorial.
Onsitus non in linea  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Segnalo this Post!OKNO this Post!
Rispondi citando
Vecchio 26-08-07, 23:41   #3 (permalink)
User Newbie
 
Data di registrazione: Aug 2007
Messaggi: 9
Grazie mille anche se a me non mi a mai funzionato.
$host = 'localhost';
$dbuser = 'your_user';
$dbpass = 'your_pass';
$dbname = 'your_db_name';
$table = 'tutorial_user_auth';

Provo a modificarlo... speriamo bene, in tanto grazie veramente...!
albertusa non in linea  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Segnalo this Post!OKNO this Post!
Rispondi citando
Vecchio 27-08-07, 00:08   #4 (permalink)
User Newbie
 
Data di registrazione: Aug 2007
Messaggi: 9
Thumbs up Grazie....!

Ho risposto ma non so bene come fuziona il forum, spero tutto ok!
albertusa non in linea  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Segnalo this Post!OKNO this Post!
Rispondi citando
Rispondi


Strumenti di discussione

Regole di scrittura
Non puoi postare nuove discussioni
Non puoi rispondere alle discussioni
Non puoi allegare file
Non puoi editare i tuoi post

BB code is Attivo
smilies è Attivo
[IMG] il codice è Attivo
Il codice HTML è Disattivato
Trackbacks are Attivo
Pingbacks are Attivo
Refbacks are Disattivato
Vai al forum



Tutti gli orari sono GMT +3. Attualmente sono le 00:17.




Forum GT - © 2004-2009 GT idea S.r.l P.iva 02418200800 - Privacy/Disclaimer

SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.