Loading a page with arguments

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
Geo877
Forum Newbie
Posts: 2
Joined: Sat Feb 16, 2008 7:51 am

Loading a page with arguments

Post 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
Geo877
Forum Newbie
Posts: 2
Joined: Sat Feb 16, 2008 7:51 am

Re: Loading a page with arguments

Post 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
Post Reply