Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Query String questions
05-03-2014, 10:54 PM #1
Query String questions
This is going to sound dumb, but I'm not exactly sure how to work with a Query String?! (I'm used to working with "pretty URLs" and mod_rewrites...)
I have a page that lists article summaries like this...
I want to make it so a user can choose a sort option in a drop-down menu, click a "Go" button, and the page is reloaded with a URL like this...
1.) How do I build the new URL with the Query String?
2.) Do I have to change my mod_rewrite - which already handles the pretty URL - to handle the Query String?
3.) Any security considerations - other than my PHP script has to sanitize the values in the Query String?
05-05-2014, 06:10 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
- Nothing changes. Querystring is handled by the server.
- You need to ensure that QSA flag is used if you add non-handled querystring items
- Same as any other querystring data.
header('HTTP/1.1 420 Enhance Your Calm');