Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-23-2009, 06:54 PM Set the page url php
Jasonpv's Avatar
Super Talker

Posts: 102
Trades: 0
Not quite sure if I am going about this correctly but I am basically trying to have all of my page content loaded dynamically depending on the page the user wants to visit. I have the code done to load the correct content depending on url of the current page. Is there any way to use php to set the current url instead of having a link to a new php page? I hope this makes sense...
Jasonpv is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-23-2009, 07:26 PM Re: Set the page url php
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
That doesn't make much sense, no
Do you mean you dont want to have a new php document for every page? In that case use the same page with a GET variable (like page.php?show=something, instead of something.php) and the load the right contents depending on the GET variable.

If that wasn't what you meant then please make a clearer description of the problem.
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 08-23-2009, 08:26 PM Re: Set the page url php
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
I believe my post at http://www.webmaster-talk.com/html-f...tml#post898229 will help.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-23-2009, 10:23 PM Re: Set the page url php
Jasonpv's Avatar
Super Talker

Posts: 102
Trades: 0
Thanks guys! I put a ?page= tag in each link and just used the GET call to get the appropriate content. Thank you so much!
Jasonpv is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Set the page url php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44826 seconds with 12 queries