leeh14 Posted October 24, 2010 Share Posted October 24, 2010 Hi, Right I have a button which links to a dynamic page and I want to clean up the URL, at the moment the button looks like this: echo "<a href='$page?\"?goto=true&id=".$custID."'>Edit</a>"; and I basically want to remove ** \"?goto=true&id=".$custID ** from the URL bar in the browser! How can this be done. Regards Lee Quote Link to comment Share on other sites More sharing options...
mentalist Posted October 24, 2010 Share Posted October 24, 2010 Assuming your still wanting to pass that info (in some form or other)... The hard way, look into mod_rewrite, then the page name could be an id that could be interpreted somehow... The other way, instead of passing as GET variables, pass as POST variables (sort of the same, but a bit more hidden), you'd just have to use custom buttons instead of links... Quote Link to comment Share on other sites More sharing options...
OldWest Posted October 25, 2010 Share Posted October 25, 2010 First off, why do you want to remove that "clutter" from the url? It appears your underlying code template was based on a model that supports that url structure. You might want to find that source code which generates the url like that, and post it up here. Quote Link to comment Share on other sites More sharing options...
leeh14 Posted October 25, 2010 Author Share Posted October 25, 2010 Hi, Cheers for the replys, well ok removing it might not be the best idea. How about then just encryting the URL? Really i just want to add an etc layer of sercurity to the site. Lee Quote Link to comment Share on other sites More sharing options...
mentalist Posted October 25, 2010 Share Posted October 25, 2010 You probably wouldn't be encrypting it... More likely you'd use a token to identify the customer or item, see PIR, but to be honest it may be a little bit of overkill for most sites... Quote Link to comment 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.