Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-18-2003, 06:48 AM   #1 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Dynamic page names?

Is it possible to create dynamic page names via PHP? For example, you the customer logs in, and instead of being redirected to 'customer.php' or something, they're redirected to a page that's the name of their SID, or some random value like '13kljhsdf84.php'.
bdl is offline   Reply With Quote
Old 08-18-2003, 07:21 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
no. maybe you could just run everything from the index page though.

www.yourdomain.com/?page=customer
www.yourdomain.com/?page=home
www.yourdomain.com/?page=login
PHP Code:
<?
switch ($_GET['page'])
{
  case 
"customer":
  {
    include(
"includes/customer.php");
    break;
  }
  case 
"login":
  {
    include(
"includes/login.php");
    break:
  }
  default:
  {
    include(
"includes/home.php");
  }
}
?>
your pages will still be defined by the page var though.

you could make it something that isn't so obious .. like

www.yourdomain.com/?a6=i35312095645

but then again, that might be the same as naming your page i35312095645.php

why exactly are you trying to accomplish this?
__________________
Mike
sde is offline   Reply With Quote
Old 08-18-2003, 08:03 AM   #3 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
you can use mod-rewrite.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 08-18-2003, 11:04 AM   #4 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Thanks for the ideas; I really don't have a specific application in mind, just something I thought up and wondered if it was possible.
bdl is offline   Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
refresh page automaticlly lampoin HTML, XML, Javascript, AJAX 5 06-18-2004 08:13 AM
dynamic select menues sde HTML, XML, Javascript, AJAX 5 02-15-2003 09:05 AM
creating dynamic variable names sde PHP 5 11-02-2002 09:03 AM


All times are GMT -8. The time now is 05:05 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting