jquery - How can you pass GET values to another url in php? GET value forwarding -
ok, i'm using jquery's ajax function , it's having trouble passing url http address. i'm hoping "get" values , send them url — so: local php file begin passed values, in turn forwards values url.
maybe curl answer? don't know. it's got short answer know.
pseudo code:
//retrieve values $var retrieve [get] //passing url send values url ($var, url_address)
edit: it's cross scripting solution javascript.
if want redirect user:
header('location: http://example.com/page.php?' . http_build_query($_get, '', '&')); die();
if want fetch page, use this:
file_get_contents('http://example.com/page.php?' . http_build_query($_get, '', '&'));
Comments
Post a Comment