Hi all,i want to ask.I've created a folder for the members page..On my code,i redirect to localhost/rekan doa/member/index.php if the member suceeded to login..Is it possible to make the address become localhost/rekandoa/index.php?member=a instead of localhost/rekan doa/member/index.php?Please teach me and what should i learn..Thanks a lot...
Have a look on google for php basic authentication,
Basic User Authentication - PHP MySQL Tutorial
I've abled to authenticate the members and redirect them to members/index.php ... It just that i'm curious about making the url become index.php?member=a which a was the member name..Thanks...
Sorry, have a google for php POST and GET methods, this is what you're asking for. So for example if you have a textbox called 'Member' depending on the forms response method you can do something like:
My username = $_GET['Member']
in the HTML the form method should be get.
For the get method it would be like how google's URL for searches
e.g.
http://www.google.co.uk/search?hl=en...t+method&meta=
(note hl is one parameter, and q is another parameter and meta is the last paramater).
The POST method will not show the information in the URL, this will be for security.
GET will be displayed in the URL. Whereas, the POST method will not be displayed in the URL
**So in short, the answer is change the POST to GET in your method
Last edited by Pashers; 10th February 2009 at 05:43 PM.
Thanks..I'll find it out..Again i want to ask,how should i handle the members folder??Is it better to put the members page within the main folder where i put the index file etc...Thanks..
There are currently 1 users browsing this thread. (0 members and 1 guests)