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