You are here: Re: Creating Dynamic URLs « PHP Programming Language « IT news, forums, messages
Re: Creating Dynamic URLs

Posted by Ron Barnett on 10/07/06 13:54

"jflash" <ki4hrg@gmail.com> wrote in message
news:1160227193.004443.197310@c28g2000cwb.googlegroups.com...
> Hello all,
>
> I feel dumb having to ask this question in the first place, but I just
> can not figure it out. I am wanting to set my site up using dynamic
> urls (I'm assuming that's what they're called, an example of what I
> have in mind is index.php?page=[pagename]). However, I can not figure
> out how to do this. I will eventually want to use SEF urls, but for now
> I'll be content just to have the dynamic urls. If anyone can tell me
> how to do this, I'd really appreciate it. Thanks!

$page = $_REQUEST['page'];
if ($page == 'pageone') include './lib/pageone.php';

the url ( index.php?page=[pagename] )does not need the square brackets
note that the parameter names - in this case 'page' is case sensitive


HTH

Ron

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация