web switcher

M

Macaws

Guest
Hi everyone,
I (again) need a little HTML help. I want a page that switches between 5 different versions of my site (random).
Is there any way to do this?
 

sunils

New Member
Messages
2,266
Reaction score
0
Points
0
design the 5 different versions of you site. in the index page of your site use a rnd function in php and determine which version to use and redirect to that version.
 

dickey

New Member
Messages
128
Reaction score
0
Points
0
You can also use mysql and store 5 different body contents and use the same said function php rnd() to determine which one to display. The difference with the above is that the titlebar in the above solution will be different for each different page, while here there is just one page but 5 different contents.
 

VPmase

New Member
Messages
914
Reaction score
1
Points
0
By versions do you mean styles or completely different HTML codes?
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
if you use PHP, your index page could simply include the content of another page, chosen at random.
So save your HTML pages as normal, but upload them as 'version1.inc', 'version2.inc' and so on.
Then have an index.php page that looks like the following:
PHP:
<?php
$page = rand(1,5);
require_once ("version$page.inc") or die ("unable to load page...");
?>
 
Top