tags:

views:

134

answers:

2

I'm trying to make it so that $_session['kw']=$_GET['kw'].

If I use the url index.php?kw=example, then when i echo $_GET['kw'] i get a blank. Is there anything that would cause $_GET to not work?

I figured out that it must be caused by the .htaccess file there are rewrite rules in there that go like this:

RewriteRUle ([-a-z0-9_]+)_review.php review.php?id=$1

These probably conflict with the "$_GET". I need to rewrite these rewrites, but how?

+2  A: 

Start by doing a print_r($_GET);

do an echo of php_info() on the page if the print_r doesn't help.

Zak
Better yet do a `var_dump($_GET)`.
MitMaro
A: 

I figured it out, I needed to put [qsa] on the rewrite rules to append the query string. Thanks for bearing with me!

pg