Hello, I have a quite easy question, but I’m out of time and I need a little help.
I have the code:
isc.DynamicForm.create({
fields:[
{
value:null,
name:“UserEmail”,
ID:“UserEmail”,
validators:[
{type:“regexp”,
expression:“^([a-zA-Z0-9_.\-+])+@(([a-zA-Z0-9\-])+\.)+[a-zA-Z0-9]{2,4}$”}
],
title:“UserEmail”,
type:“text”,
_constructor:“TextItem”
},
{name:“password”, title:“Password”, _constructor:“PasswordItem”}
],
autoDraw:true,
padding:4,
ID:“DynamicForm1LI”,
height:48,
action:“test_login.php”,
method:“POST”
})
isc.Button.create({
showContextMenu:null,
doubleClick:null,
title:“Log In”,
click: function () {
*************************
},
left:10,
autoDraw:false,
ID:“ButtonLogIN”
})
can U please tell what coude should I put in the *********** section so I can send my value from UserEmail input to test_login.php and to get a response from my sql query?
test_login.php
<?php
require_once(“includes/config.php”);
require_once(“includes/class/mysql.php”);
require_once(“includes/script/connect.php”);
$query = "SELECT * FROM customer WHERE customer_active = 1 AND customer_email = ".$_POST[“UserEmail”];
$r->sel($query);
$nr = $r->nb_aff;
echo $nr;
?>
Thanks very much!