GalaxyTramp Posted May 2, 2011 Share Posted May 2, 2011 Is there any reason not to use links such as: <a href='/results.html?id=12&location[]=" . str_replace(' ', '+', $location). "</a> I refer to the empty square array brackets. Is this a bad/risky practise or quite acceptable? Your opinions please. GT Link to comment https://forums.phpfreaks.com/topic/235341-a-practise-to-be-avoided/ Share on other sites More sharing options...
spiderwell Posted May 2, 2011 Share Posted May 2, 2011 arrays cannot be passed like this, so no point even trying, not really a good practice. try serialize the array and pass that, then un serialize Link to comment https://forums.phpfreaks.com/topic/235341-a-practise-to-be-avoided/#findComment-1209401 Share on other sites More sharing options...
fugix Posted May 2, 2011 Share Posted May 2, 2011 http://www.justskins.com/forums/passing-array-in-the-120375.html read the fourth comment down..should help Link to comment https://forums.phpfreaks.com/topic/235341-a-practise-to-be-avoided/#findComment-1209404 Share on other sites More sharing options...
GalaxyTramp Posted May 2, 2011 Author Share Posted May 2, 2011 Thanks! Understood now Link to comment https://forums.phpfreaks.com/topic/235341-a-practise-to-be-avoided/#findComment-1209409 Share on other sites More sharing options...
fugix Posted May 2, 2011 Share Posted May 2, 2011 no problem glad it helped Link to comment https://forums.phpfreaks.com/topic/235341-a-practise-to-be-avoided/#findComment-1209418 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.