url variable link
Posted: Mon May 11, 2009 9:22 am
Hi I have a page1 with a variable link page2.php?cat=Accomodation&list=Backpackers Hostel then on page2.php I have
which works perfectly and displays Accomodation : Backpackers Hostel
How do I get the echo part to turn into links. I need on page2 the 'Accomodation : Backpackers Hostel' to be made into links that I can click on them. 2 separate links, 1 for Accomodation and the 2nd one for Backpackers Hostel.
Could someone please help I am at a total loss as to convert them to links.
Thanks for your help
Code: Select all
<?php
$cat = $_GET['cat'];
$list = $_GET['list'];
echo ("{$cat} : {$list}");?>How do I get the echo part to turn into links. I need on page2 the 'Accomodation : Backpackers Hostel' to be made into links that I can click on them. 2 separate links, 1 for Accomodation and the 2nd one for Backpackers Hostel.
Could someone please help I am at a total loss as to convert them to links.
Thanks for your help