
Quote from asmat on April 16, 2019, 7:38 pmI want make an app for the following website:
http://kankorafghanistan.com/kankor-results/
Is it possible I use "Form" for submitting and fetching data?
I have done like following, but it does not work:
http://tinyurl.com/y4cgdayp
Can anyone find my mistake?
I want make an app for the following website:
http://kankorafghanistan.com/kankor-results/
Is it possible I use "Form" for submitting and fetching data?
I have done like following, but it does not work:
Can anyone find my mistake?

Quote from luishp on April 16, 2019, 8:57 pm@asmat in property-name you need to add the variable names the php script expects to get.
Also be sure your .php file allows cross site scripting.
Please take a look to the included FormSubmit sample.
There is a neoapptest.php file in the same folder with this header:header("Access-Control-Allow-Origin: *");This is necessary only if your application is running from a different location than your .php file.
If you test the sample app from your PC it will work as we have a copy of the php file hosted in our server with that header.
@asmat in property-name you need to add the variable names the php script expects to get.
Also be sure your .php file allows cross site scripting.
Please take a look to the included FormSubmit sample.
There is a neoapptest.php file in the same folder with this header:
header("Access-Control-Allow-Origin: *");
This is necessary only if your application is running from a different location than your .php file.
If you test the sample app from your PC it will work as we have a copy of the php file hosted in our server with that header.

Quote from lesanch on June 16, 2021, 3:24 amHi @luihp,
I have to send a variable from VNweb to PHP but i do not have a property-name because y only send a variable with the string connection, i don't have a textbox. Inside PHP i used this:
$str_conn = $_POST["str_conn"];
But i think i need to set the property-name too with [str_conn].
how should i do ?
Regards,
Sam
Hi @luihp,
I have to send a variable from VNweb to PHP but i do not have a property-name because y only send a variable with the string connection, i don't have a textbox. Inside PHP i used this:
$str_conn = $_POST["str_conn"];
But i think i need to set the property-name too with [str_conn].
how should i do ?
Regards,
Sam

Quote from luishp on June 16, 2021, 7:27 am@lesanch, puedes utilizart un formulario o, mucho más sencillo neoAjaxSend:
CreateEmptyObject [myData] SetVar [myData.str_conn] "Dato a enviar" neoAjaxSend "myPhpScript.php" "POST" "[myData]" "json" "" ""Saludos.
@lesanch, puedes utilizart un formulario o, mucho más sencillo neoAjaxSend:
CreateEmptyObject [myData] SetVar [myData.str_conn] "Dato a enviar" neoAjaxSend "myPhpScript.php" "POST" "[myData]" "json" "" ""
Saludos.

Quote from lesanch on June 18, 2021, 3:53 pmHola Luis,
Bueno me fue mas fácil hacerlo con un textbox oculto en el formulario para poder setear el property-name. Aun no se muy bien trabajar con Json pero entiendo que es vital para el desarrollo Web, por ahora se me complicó un poco. Por lo pronto pude hacer lo que necesitaba :-).
Mil gracias como siempre,
Sam
Hola Luis,
Bueno me fue mas fácil hacerlo con un textbox oculto en el formulario para poder setear el property-name. Aun no se muy bien trabajar con Json pero entiendo que es vital para el desarrollo Web, por ahora se me complicó un poco. Por lo pronto pude hacer lo que necesitaba :-).
Mil gracias como siempre,
Sam