Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 11-12-2005, 03:28 PM   #1 (permalink)
True Techie
 
Join Date: Apr 2005
Posts: 110
Default Forms Form Forms (PHP problem)

Hello, I've been trying to create my own password zone script. Everything works fine except for 1 BIG problem. I've changed the form's methord to "post" so that the data doesn't get shown on the url. However, when the information does get passed to the php file to processes the login, I used $_REQUEST function and.... it appears that it has ignored my POST methord and just went ahead with the "GET" methord which showed username and password on url -_-"

can someone please tell me why it's happening and how to fix it?
Murdoc is offline   Reply With Quote
Old 11-12-2005, 05:31 PM   #2 (permalink)
Super Techie
 
Join Date: Apr 2004
Posts: 316
Default

The receiving file(the one that processes the login) had nothing to do with how it pass the data. It is something in the form itself.

You might try taking the method attribute out as I think(don't qoute me) post is the default.
__________________
BlazingWolf
<font color=\'red\'>
<b>
<a href=\'http://www.gaming-forums.org\'>
Gaming-Forums.org
<a/>
</b>
</font>
BlazingWolf is offline   Reply With Quote
Old 11-12-2005, 11:04 PM   #3 (permalink)
Ultra Techie
 
Join Date: Jul 2005
Posts: 530
Send a message via AIM to TheHeadFL
Default

As far as I know you shouldn't even have to use $_REQUEST anyway, since once its 'posted' it should be accessible simply by $fieldname
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline   Reply With Quote
Old 11-12-2005, 11:53 PM   #4 (permalink)
True Techie
 
Join Date: Apr 2005
Posts: 110
Default

Quote:
Originally posted by TheHeadFL
As far as I know you shouldn't even have to use $_REQUEST anyway, since once its 'posted' it should be accessible simply by $fieldname
well I just tried using $user and $pw and yet, they don't get passed to password.php properly... and I still noticed the browser posting the user and the password on the url... = /
Murdoc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:47 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0