handoyo Posted February 10, 2009 Posted February 10, 2009 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...
Pashers Posted February 10, 2009 Posted February 10, 2009 Have a look on google for php basic authentication, Basic User Authentication - PHP MySQL Tutorial
handoyo Posted February 10, 2009 Author Posted February 10, 2009 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...
Pashers Posted February 10, 2009 Posted February 10, 2009 (edited) 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&q=php+get+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 Edited February 10, 2009 by Pashers
handoyo Posted February 10, 2009 Author Posted February 10, 2009 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..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now