07-14-2008, 05:54 PM
very basic question (i hope)
i want to create a php page that will load an external web page, select an option from a drop-down and click the submit button to select the option i have just picked.
i'm no programmer so help on this would be great
07-14-2008, 06:00 PM
I think you're looking for file_get_contents()
$file = file_get_contents('http://www.google.ca');
07-14-2008, 06:02 PM
Okay and what have you tried? This forum is for helping people who've tried things on their own not to just give code. If you want something custom then consider hiring someone. You will need to figure out how to post to a php script. Once you figure that out you can use a php header() call to send the user to the selected page.
07-14-2008, 06:29 PM
well, like i say i'm no programmer, just looking to do up a website.
so i'm just looking for a php version like
(well, i think i am anyway)
07-14-2008, 06:50 PM
If you have something more along the lines of a replacement (say a top header thats always the same), a simple include/require will allow you to include and parse another PHP script into that location - similar to how a server side include works in cgi.