Jump to content

Recommended Posts

Posted
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...
Posted
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...
Posted (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 by Pashers
Posted
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..

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...