Hi
I currently have URL's looking like this when it is coming from a link:
http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=4
I would like to hide the fact that recordID=4
How can I do this?
Many thanks
Hi
I currently have URL's looking like this when it is coming from a link:
http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=4
I would like to hide the fact that recordID=4
How can I do this?
Many thanks
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?
Something like
http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details/4/
?
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....?
Hi,
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
http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=NA==
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.