문제

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

도움이 되었습니까?

해결책

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'] : '';
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top