Web Development Thread, Showing index.php?member=a in Coding and Web Development; 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 ...
10th February 2009, 05:06 PM #1
- Rep Power
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...
IDG Tech News
10th February 2009, 05:13 PM #2
Have a look on google for php basic authentication,
Basic User Authentication - PHP MySQL Tutorial
10th February 2009, 05:24 PM #3
- Rep Power
I've abled to authenticate
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...
10th February 2009, 05:39 PM #4
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
(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.
10th February 2009, 05:57 PM #5
- Rep Power
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..
By Simcfc73 in forum Bad Experiences
Last Post: 23rd February 2009, 01:46 PM
By Edu-IT in forum EduGeek Joomla 1.5 Package
Last Post: 8th December 2008, 08:17 PM
By steve_nfi in forum Recommended Suppliers
Last Post: 24th September 2008, 11:27 AM
By gshaw in forum Wireless Networks
Last Post: 4th September 2008, 12:08 PM
By e_g_r in forum EduGeek Joomla 1.0 Package
Last Post: 11th December 2007, 10:43 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)