LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 06-15-2006, 03:01 PM
Sier Sier is offline
Registered User
 
Join Date: Jun 2006
Posts: 1
Rep Power: 0
Sier is on a distinguished road
Machine Flash + PHP problem

I have one Flash Form (http://www.druidhost.com/index_sub.html) on the top = username + senha (pass) and one button entrar = enter )

I want that when the user inserts the username and the pass and click ENTRAR flash will send all info to www.druidhost.com/painel (.php), and login without questions..

I'm using this flash code (action of the entrar buttom)

on (release) {
lv = new LoadVars();
lv.login = login_name.text;
lv.password = passwd.text;
lv.send("http://www.druidhost.com/painel/index.php", lv, "POST"); }

And this for the .php

include("power.php");
$login_name = "&login_name=";
$passwd = "&passwd=";
$sql = "SELECT * FROM tb_clientes WHERE login LIKE '$login_name'";
$query = mysql_query($sql);
while($sql = mysql_fetch_array($query)){
$senha = $sql["senha"];
$login = $sql["login"];
}
if($login == '' || $senha == '') {

and the power.php

$hostname = 'localhost';
$username = 'XxxXxXx';
$senhabd = 'XxXxXxx';
$banco = 'druidpainel';
$db = mysql_connect($hostname, $username, $senhabd);
mysql_select_db($banco,$db);

==============================================\

What happens is: I get to the login page, but nothing happens (I still have to type the user and pass)..
What can be done? thank you!

Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php variable in flash problem rsfy Flash 8 1 01-28-2007 09:54 PM
Flash + PHP --> Security !! yestomike Flash MX 2004 2 01-16-2007 07:58 AM
flash mx to PHP to flash mx olm75 Flash MX ActionScript 1 12-09-2004 02:52 PM
PHP encode to FLASH decode. cybercampbell Web Platforms - PHP, JSP and .NET 1 06-29-2004 11:00 PM
Php - Mysql - Flash julianseclaire Flash Media Server 1 03-30-2004 04:21 PM




All times are GMT. The time now is 06:13 PM.