PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > .htaccess / Scheduled Jobs
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old 7-14-12, 05:56 AM   #1
PeterPan
 
Join Date: Sep 2002
Location: Auckland
Posts: 1,227
Reputation: 59
blank GET POST REQUEST ??? Htaccess & PHP

Hello.

i have this htaccess line :-

Code:
RewriteEngine on DirectoryIndex index.php RewriteRule ^logout/?$ login.php?out=1 [L] RewriteRule ^login/?$ login.php [L] RewriteRule ^admin/?$ admin.php [L] RewriteRule ^schedule/?$ schedule.php [L]
Basically, i'm trying to debug my login.php script. However, I have NO variables at all being read / seen by the script.

I want the user to be able to go to

domain.com/login

domain.com/login?action=boobar5

domain.com/login?Blankhere5=boobar5 (and access the Blankhere5 variable in the script)

domain.com/login?AnyvariableIlike=anything (and access the AnyvariableIlike variable in the script)


Query :- is the htaccess code i'm using preventing variables from being passed to the script (in GET or POST )


PS - Here is part of my PHP script (near the start...)

Code:
foreach($_REQUEST as $ab => $ac) { $ac=trim($ac); $log.="request32 '$ab' '$ac'\n"; } foreach($_GET as $ab => $ac) { $ac=trim($ac); $log.="get32 '$ab' '$ac'\n"; } foreach($_POST as $ab => $ac) { $ac=trim($ac); $log.="post32 '$ab' '$ac'\n"; }
PeterPan is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:43 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.