diasansley Posted January 5, 2011 Share Posted January 5, 2011 hey guys i am stuck at one part. i am coding a site where on the index page there are 5 categories. Now on click of these it takes me to a page where i can search within a particular category. i can do it by statically giving <href="localhost/xampp/abc.php">and a fixed page path. but i want the name of the category passed when i click and the search page to open when i open search. thanks Link to comment https://forums.phpfreaks.com/topic/223475-passing-values/ Share on other sites More sharing options...
MadTechie Posted January 5, 2011 Share Posted January 5, 2011 if its static use <href="localhost/xampp/abc.php?cat=whatever"> but you could use the same idea via a JS link in abc.php to get the categorie use the $_GET ie echo $_GET['cat']; [/code] Link to comment https://forums.phpfreaks.com/topic/223475-passing-values/#findComment-1155214 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.