Jump to content

URL obfuscate display


dbrimlow

Recommended Posts

I am passing form select values (a1 through a14) from one url to another (where the database resides)

 

It returns an "includes" page that lists all items matching the select criteria; this may be up to 30 pages worth of results with a "next" link.

 

I want to keep the url on the "next" relatively simple, but not change the actual URL and it's function.

 

example (this is what I get when I view the next properties:

 

http://mysitecom/aptsforsale.php?page=2&price=ALL&searchSize=ALL&area=ALL&a1=1&a2=&a3=1&a4=&a5=1&a6=&a7=&a8=&a9=&a10=&a11=&a12=&a13=&a14=&selectFeatures=yes

 

I would like to simply have it show the next page #: http://mysitecom/aptsforsale.php?page=2

 

Can this be done?

Link to comment
https://forums.phpfreaks.com/topic/57578-url-obfuscate-display/
Share on other sites

Do you need all those GET values in the next page?  If so, and you don't want them in the URL, you can use a POST method with a button INPUT to go to the next page.

 

If you just want to remove the rest of that URL after a certain point, you can use

<?php

$newurl = substr($oldurl, 0, strpos($oldurl, '&') + 1)

?>

Link to comment
https://forums.phpfreaks.com/topic/57578-url-obfuscate-display/#findComment-285000
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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