Ver Mensaje Individual
  #8 (permalink)  
Antiguo 21/03/2006, 06:57
Avatar de atak
atak
 
Fecha de Ingreso: julio-2005
Ubicación: Huancayo
Mensajes: 490
Antigüedad: 18 años, 9 meses
Puntos: 5
De acuerdo LoadVars + ActionScript

Hola shomismo

a lo mejor lo que posteo te ayude en algo ; espero q asi sea.

1._ en tu FRAME de Action Script ( evento click de tu Boton )
Código PHP:
<?php
/// CODIGO  ACTION SCRIPT

/// variables LoadVars()
buskeda = new LoadVars();
recibe = new LoadVars();

///mis datos a enviar como variables 
               
buskeda.item_bus item.text// ITEM  BUS
        
buskeda.titulo_bus titulo.text;
        
buskeda.autor_bus autor.text;
        
buskeda.isbn_bus isbn.text;
        
buskeda.editorial_bus editorial.text;
        
buskeda.sendAndLoad("buskeda.php",recibe,"POST");

recibe.onLoad = function(exito){
    if(
exito)
        {
          if(
recibe.estatus=='ok')
            {
              
_root.cat_screen.mensaje_txt.text "Proceso OK";
            }
        else
            {
             
_root.cat_screen.mensaje_txt.text "Fallo Proceso";
            }
        }                                      
    }
?>
Archivo buskeda.php

Código PHP:
<?php
// Recibiendo las  variables  FLASH
$id=$_POST['item_bus'];  //  si deseas  hacer algun UPDATE
$a=$_POST['titulos_bus'];
$b=$_POST['autor_bus'];
$c=$_POST['isbn_bus'];
$d=$_POST['editorial_bus'];

// conexiones  MySQL
// base de  datos seleccion
$sql="TU SENTENCIA   SQL";
$proc=mysql_query($sql);
if(
$proc)
{
    echo 
"&estatus=ok&";
}
else
{
    echo 
"&estatus=error&";
}
?>

Salu2
__________________
. .: El mejor Inicio :. .