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:

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

Thanks

Johan

Recommended Answers

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>"; 
Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.