Send multiple variables to a URL with POST to SQLSRV + php

William Prothero prothero at earthednet.org
Wed Feb 24 18:59:24 EST 2016


David:
Perhaps this link will help. There is a demo stack you can download.
http://es.earthednet.org/SoftwareForEducation <http://es.earthednet.org/SoftwareForEducation>
Bill

> On Feb 24, 2016, at 3:09 PM, david alfredo zuñiga soto <david_alfredo_93 at hotmail.com> wrote:
> 
> Hi all, a little help please.
> in my app of LiveCode use this sentence:        put "tIDUsr=" & IDUsr & "&tPWD=" & PWD & "&tCorreo"&correo into tArgList        post tArgLists to URL "http://172.16.2.130:8080/BuscarNombreUsr.php"        put it into encodeNombre
> Presumably, sent the user id, password and mail my script of php.. but. This only marks | Undefined index: tIDUsr in| and this is for all data sent..
> 
> my script php does this..
> 
> <?phpinclude 'conexion.php';  # the connection works fine.      $IDUsr=$_POST["tIDUsr"];     $nIDUsr=(int)$IDUsr; #convertir la cadena a entero, para comparar con tynit en la bd     $PWD=$_POST["tPWD"];    $Correo=$_POST["tCorreo"];        $query = "SELECT Nombre FROM tblusuarios WHERE IDUsuario='$nIDUsr' and Contraseña='$PWD' and Correo='$Correo'";    $stmt4 = sqlsrv_query( $conn, $query);        if( $stmt4 === false)        {             echo "Error in query preparation/execution.\n";              die( print_r( sqlsrv_errors(), true));        }                while( $row = sqlsrv_fetch_array( $stmt4, SQLSRV_FETCH_ASSOC))        {            echo $row['Nombre']."\n";        }        $stmt4 = null;        $conn = null;?>
> any suggestions ?? thanks for everything            
> 		 	   		  
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list