SubmitForm - Forum

Forum Navigation
You need to log in to create posts and topics.

SubmitForm

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:

http://tinyurl.com/y4cgdayp

Can anyone find my mistake?

 

@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.

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

@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.

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

 

luishp has reacted to this post.
luishp