Mod_rewrite doesn't send post vars

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Mod_rewrite doesn't send post vars

Post by Todd_Z »

When I rewrite the friendly urls, the post variables aren't sent along with it, how can i send post vars from the original url in the RewriteRule?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

POST vars arn't sent in the URL :| Not quite sure what you mean?
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

Well I want a form to submit information via POST to domain.com/SEARCH

then mod_rewrite causes it to be domain.com/index.php?page=Search

But the Post variables aren't transfered when this is done.
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

Any ideas folks?
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

Shoowee, you got me worried my site wasn't working. It works fine for me. Post your rewrite code.
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

I actually just decided to migrate over to a javascript mod_rewrite... ish.

Basically, when the submit button is clicked, I'm going to create a url from the values that is a "friendly" url. Maybe I'll revisit this later.
Post Reply