Page 1 of 1

Loading a page with arguments

Posted: Sat Feb 16, 2008 8:00 am
by Geo877
Hi I'm sort of a newbie at php so the solution is probably pretty obvious, what i'm trying to do is get all of the data from a page using this -

$lines = file('http://www.somesite.com/somepage.html);
$l_count = count($lines);
for($x = 0; $x< $l_count; $x++)
{
}

of which $lines is all of the data in that page

which works fine, but i need to get the data after I've sent the arguments to it. What i can do is send the arguments using a form by submitting them but however, this causes the browser to load that page. How can i load the page with arguments through php? The page is jsp

Thanks

Re: Loading a page with arguments

Posted: Sat Feb 16, 2008 8:33 am
by Geo877
Solved! :D If it helps anyone all i did was load the page in a php GET style for example... somepage.php?var1=abc