Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Location
    pakistan
    Posts
    109

    Unanswered: Showing url like this

    How to show url like this method

    index.php?page=pbsetup.php

    i have a site i want to do that like this
    that page url showing like this method
    currently i am using this method to show my pages
    http://www.etc.com/register.php

    now suggest me how to show my urls like this view any view tell me

  2. #2
    Join Date
    Jul 2010
    Location
    Winnipeg, Canada
    Posts
    7
    In your index.php file, you will need to load content based on the variable $_GET['page'].

    When someone visits index.php?page=pbsetup.php, the value of $_GET['page'] will be 'pbsetup.php'. You can then include that page in your content.

    NOTE: You should have a list of approved pages that can be loaded through this method to avoid security exploits. If you simply load whatever is passed in the URL, you will be hacked quickly. If you don't understand, you should get more familiar with PHP first before using this.

  3. #3
    Join Date
    Aug 2010
    Posts
    1
    Can you just not use .htaccess for this?

  4. #4
    Join Date
    Sep 2010
    Posts
    3
    Register the system should use POST.


    wedding

  5. #5
    Join Date
    Jun 2011
    Posts
    15
    Quote Originally Posted by don_log View Post
    How to show url like this method

    index.php?page=pbsetup.php

    i have a site i want to do that like this
    that page url showing like this method
    currently i am using this method to show my pages
    http://www.etc.com/register.php

    now suggest me how to show my urls like this view any view tell me
    I also eager to know about it. And waiting for valuable reply.

Posting Permissions

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