Results 1 to 3 of 3

Thread: URL problems

  1. #1
    Join Date
    Mar 2005

    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


    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

    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
    4846′36″ N 910′48″ E
    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
    Not sure if this is what you're looking for:
    PHP Code:
    $thisFileName basename(__FILE__); // 2 underscores on each side of FILE 
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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