I currently have URL's looking like this when it is coming from a link:


I would like to hide the fact that recordID=4

How can I do this?

Many thanks

Recommended Answers

All 4 Replies

You need to uniquely identify the record ID in order to distinguish loading record 3 from record 4. Or, do you want to just go to findanagent_details.php and have record 4 automatically load 100% of the time?

Member Avatar

Something like


You'll need the 4 in the url somewhere so that the page can know which record to retrieve. Either that or you set a cookie or similar via js - but that's just crazy. Even crazier would be sending data as post!

Hi the above is a link from a previous page with a list of products. Depending on which product's link you click on will take you to the detailed information. So could be anything from Record 1 to Record 1000
I thought in my head that you could do a base64_encode at the link end and then base64_unencode at the display end, but maybe I'm off track....?


If you want to use base_64, then you can try

  $item_no = base64_encode (4);
  ## the above gives a this value NA==

Thus, making your url as shown below

 http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=<?php echo $item_no;?>

and visible to the browser as


we cannot encode this recordID to base 64, unless you want to use pregmatch on the url extracting this part, and then use base64_decode.. for the above code, you extract the encoded integer ...like this

$record_id = base64_decode ($_GET['recordID']);

Record ID should be now back to its original value which is 4.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.