form submission code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rsundar1987
Forum Newbie
Posts: 1
Joined: Sun Aug 15, 2010 9:25 pm

form submission code

Post by rsundar1987 »

hello all!

need help with implementing this piece of code here. This is supposed to submit the information contained in $data_array to http://www.schrenk.com/search.php but unfortunatly it does not seem to be working. any help would be deeply appreciated.

include("C:\wamp\bin\php\php5.2.6\LIB_http.php");

$action = "http://www.schrenk.com/search.php";
$method = "GET";
$ref = " ";
$data_array['term'] = "hello";
$data_array['sort'] = "up";
$response = http_get_form($target = $action, $ref, $method, $data_array, EXCL_HEAD);

echo $response;

thank you :D
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: form submission code

Post by requinix »

rsundar1987 wrote:it does not seem to be working
We aren't psychic. We aren't sitting in front of your computer watching what you're doing.

What does "not seem to be working" mean?
Post Reply