If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Showing url like this

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-10, 10:53
don_log don_log is offline
Registered User
 
Join Date: Jun 2008
Location: pakistan
Posts: 109
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
Reply With Quote
  #2 (permalink)  
Old 07-15-10, 18:47
R45 R45 is offline
Registered User
 
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.
Reply With Quote
  #3 (permalink)  
Old 08-02-10, 09:49
oakleaf1 oakleaf1 is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
Can you just not use .htaccess for this?
Reply With Quote
  #4 (permalink)  
Old 10-01-10, 02:58
penthai06 penthai06 is offline
Registered User
 
Join Date: Sep 2010
Posts: 3
Register the system should use POST.


wedding
Reply With Quote
  #5 (permalink)  
Old 06-14-11, 07:29
Kailee Kailee is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On