+ Post New Thread
Results 1 to 5 of 5
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 ...
  1. #1

    Join Date
    Feb 2009
    Location
    Indonesia
    Posts
    18
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Showing index.php?member=a

    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...

  2. #2

    Join Date
    May 2008
    Location
    Cheshire
    Posts
    288
    Thank Post
    48
    Thanked 27 Times in 24 Posts
    Rep Power
    18
    Have a look on google for php basic authentication,

    Basic User Authentication - PHP MySQL Tutorial

  3. #3

    Join Date
    Feb 2009
    Location
    Indonesia
    Posts
    18
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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...

  4. #4

    Join Date
    May 2008
    Location
    Cheshire
    Posts
    288
    Thank Post
    48
    Thanked 27 Times in 24 Posts
    Rep Power
    18
    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 04:43 PM.

  5. #5

    Join Date
    Feb 2009
    Location
    Indonesia
    Posts
    18
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Thanks

    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..

SHARE:
+ Post New Thread

Similar Threads

  1. IT Index Again
    By Simcfc73 in forum Bad Experiences
    Replies: 6
    Last Post: 23rd February 2009, 12:46 PM
  2. Index
    By Edu-IT in forum EduGeek Joomla 1.5 Package
    Replies: 1
    Last Post: 8th December 2008, 07:17 PM
  3. The IT Index
    By steve_nfi in forum Recommended Suppliers
    Replies: 23
    Last Post: 24th September 2008, 10:27 AM
  4. Google Re-Index?
    By gshaw in forum Wireless Networks
    Replies: 6
    Last Post: 4th September 2008, 11:08 AM
  5. can't find the index.php with the template colour switch
    By e_g_r in forum EduGeek Joomla 1.0 Package
    Replies: 5
    Last Post: 11th December 2007, 09:43 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •