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 ?feed=www.w3schools.com and when enter is hit the w3schools page is opened in the browser. My code so far.

php code:

echo $_GET["feed"];  



Recommended Answers

All 2 Replies

Search engines are you friend. What you are asking to retrieve the data of a web page or to forward the user to that page?

instead of 2nd line use this line.It will work.But URL must be complete address otherwise it will search inside your folder.

echo "<a href=".$_GET['feed'].">$_GET['feed']</a>"; 
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.