Jump to content

Shortening URL


leeh14

Recommended Posts

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.