Pregunta

I have an html page for a phonegap application. In this page i have to send this value SAT000000002574 at this php page :

http://sat3.altervista.org/index.php

I can not use php for make this work because phonegap doesn't support it. For this reason i have to use jquery or javascript. In which way i can send this value??

¿Fue útil?

Solución

Use $.get as below:

$.get('http://sat3.altervista.org/index.php', {myValue: 'SAT000000002574', moreValue: 15}, function(data) {

});

In php file you can access myValue as below:

$myValue = isset($_GET['myValue']) ? $_GET['myValue'] : '';
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top