Question

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??

Was it helpful?

Solution

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'] : '';
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top