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
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Fri Jun 17, 2005 11:20 am
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?
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Fri Jun 17, 2005 1:34 pm
POST vars arn't sent in the URL
Not quite sure what you mean?
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Fri Jun 17, 2005 2:26 pm
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.
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Jun 19, 2005 10:57 am
Any ideas folks?
Skara
Forum Regular
Posts: 703 Joined: Sat Mar 12, 2005 7:13 pm
Location: US
Post
by Skara » Sun Jun 19, 2005 12:08 pm
Shoowee, you got me worried my site wasn't working. It works fine for me. Post your rewrite code.
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Jun 19, 2005 1:00 pm
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.