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 Quote 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 Quote 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 Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.