Little help

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!

1.First give an ID to your Form.
2.Please use code tag when you post your code.
3.gigibecali is wrong :slight_smile:

         click: function() {
         if(loginForm.validate()) {
          var data = { UserEmail:loginForm.getItem('UserEmail').getValue()};
          RPCManager.sendRequest({
            params: data,
            serverOutputAsString: true,
            actionURL:"test_login.php",
            callback:"myCallback(rpcResponse)"
           });
          }
         }


function myCallback(rpcResponse) {
isc.say(rpcResponse.data);
}

However seek in the docs for RestDataSource.

Thanks a lot JohnBlack! It works perfect!:). Thanks also for the reference. I am a biginner in SmartClient and I have a little time to implement a project with SmartClient.