anshugiri Posted June 26, 2007 Share Posted June 26, 2007 hi, can i pass a url parameter such as: index.php?link=products_detail.php?id_product=<?php echo $row_rs_products['id_product']; ?> I have a page with an INCLUDE for the link passed as URL Parameter...however, it isnt working. What could make this work? Basically, the url paramater itself is a link with a url parameter thanks Link to comment https://forums.phpfreaks.com/topic/57319-url-parameters/ Share on other sites More sharing options...
JasonLewis Posted June 27, 2007 Share Posted June 27, 2007 once you have one query string (?), all others need to be an ampersand (&). so your link would look like this: index.php?link=products_detail.php&id_product=<?php echo $row_rs_products['id_product']; ?> Link to comment https://forums.phpfreaks.com/topic/57319-url-parameters/#findComment-283750 Share on other sites More sharing options...
cooldude832 Posted June 27, 2007 Share Posted June 27, 2007 why u want code in the URL better to handle it with a switch or if/elseif commands Link to comment https://forums.phpfreaks.com/topic/57319-url-parameters/#findComment-283757 Share on other sites More sharing options...
mmarif4u Posted June 27, 2007 Share Posted June 27, 2007 Or i think sessions will be better than GET function. Link to comment https://forums.phpfreaks.com/topic/57319-url-parameters/#findComment-283791 Share on other sites More sharing options...
anshugiri Posted June 27, 2007 Author Share Posted June 27, 2007 thanks. Link to comment https://forums.phpfreaks.com/topic/57319-url-parameters/#findComment-284401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.