PHP Executing a url

Hello friends

I am new to php and would like some help.

I would like to read the feed URL from a query string. So far I am managing to input the feed and displaying it in a browser but is there a way of executing the url? Like for example ? and when enter is hit the w3schools page is opened in the browser. My code so far.


<?php echo $_GET["feed"]; ?>



you could use a meta refresh or redirect using a location header - header(‘Location:’. $_GET[‘feed’]);

If you want to give your visitors the opportunity to decide if they want to go or not to go to a specific url then maybe you could something like this:

[php]$output = “<a href=“” . urlencode($_GET[‘feed’]) . “”>W3Schools Example”;
echo $output; [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service