www.webdeveloper.com
Results 1 to 3 of 3

Thread: URL problems

  1. #1
    Join Date
    Mar 2005
    Posts
    29

    URL problems

    hello all
    i am still pretty new to php and i need to extract a value from the url and not quit sure wich is the best rout to take or the most efective

    example
    "www.awebsite.com/userspage"

    now i need to get the value of the userspage because it is the name of the table storing all of there inputed info on there page

    any help is welcome or if i need to give more info on my question let me know
    thankss

    btw how do i marke the thread resoleved?? i have another post that i figured out and i need to do that
    Last edited by mikefly; 04-06-2006 at 10:12 AM.

  2. #2
    Join Date
    Jun 2004
    Location
    4846′36″ N 910′48″ E
    Posts
    3,747
    you'll probably want to do this:

    for example, your page is index.php
    and your link would be www.awebsite.com/index.php?page=x (where 'x' is whatever you want, a number or a string, that would be your table name)

    this table name is accessible through:
    PHP Code:
    $page $_GET['page']; 

    to mark a thread resolved click on thread tools at the top of the 1st post and click on "mark thread resolved"

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,178
    Not sure if this is what you're looking for:
    PHP Code:
    $thisFileName basename(__FILE__); // 2 underscores on each side of FILE 
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

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
  •  
HTML5 Development Center



Recent Articles