Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 19:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HTML Random auf Seite landen

Discussion on HTML Random auf Seite landen within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2014
Posts: 189
Received Thanks: 21
HTML Random auf Seite landen

Moin,

wie kann ich das bei PHP/HTml so machen, das wenn ich z.b domain.tld aufrufe, das ich immer RANDOM auf z.B domain.tld/page1 komme, oder beim reloaden domain.tld/page2?

also sollte z.B von 1 - 6 gehen, immer wenn man die Seite aufruft sollte man einer der Seiten da bekommen.

danke im vorraus
-skyDIVE is offline  
Old 02/19/2015, 17:08   #2
 
elite*gold: 25
Join Date: Sep 2011
Posts: 5,537
Received Thanks: 1,266
Du musst gucken das für umleitung hier:


Machst du eine neue Array packst deine Seiten da rein - und leitest mit der oben genannten Funktion auf Seite um.
Auf welche Seite dein krass konkreter Besucher random kommst entscheidest du mit .
IchVerabschiedeMich is offline  
Old 02/19/2015, 18:15   #3
 
elite*gold: 0
Join Date: Nov 2014
Posts: 189
Received Thanks: 21
Quote:
Originally Posted by <(`-´)> View Post
Du musst gucken das für umleitung hier:


Machst du eine neue Array packst deine Seiten da rein - und leitest mit der oben genannten Funktion auf Seite um.
Auf welche Seite dein krass konkreter Besucher random kommst entscheidest du mit .
kannst du mir ein beispiel machen? bin ein kompletter noob bei php
-skyDIVE is offline  
Old 02/19/2015, 19:01   #4

 
xEncounter's Avatar
 
elite*gold: 22
Join Date: Nov 2009
Posts: 1,552
Received Thanks: 361
Quote:
Originally Posted by -skyDIVE View Post
kannst du mir ein beispiel machen? bin ein kompletter noob bei php
PHP Code:
$webseiten = array("index.php""b.php""bla.php""asgd.php");

$random mt_rand(0,sizeof($array));

header("Location:".$webseiten[$random]); 

Glaube da sind Tippfehler :<

So in der Richtung würde das klappen ^^
xEncounter is offline  
Reply


Similar Threads Similar Threads
Random html
12/12/2013 - Zero - 1 Replies
help pages can be a great place to introduce many great browser based resources into your client ... as there are many buttons and links in the game that are unused or defunct in most clients (in any game not just zero) now they are usually used for simple things like listing "more info" links or help pages for your different in game attributes. Some however are used to connect to outside links on websites related to the game. but can be used for whatever you like such as a vote link, an...
random html
11/30/2012 - Zero - 1 Replies
help pages can be a great place to introduce many great browser based resources into your client ... as there are many buttons and links in the game that are unused or defunct in most clients (in any game not just zero) now they are usually used for simple things like listing "more info" links or help pages for your different in game attributes. Some however are used to connect to outside links on websites related to the game. but can be used for whatever you like such as a vote link, an...
[HTML] Random Button Flash
11/29/2010 - Web Development - 0 Replies
Hab nen kleines Problem: Hab auf meiner Seite ein Flashobject, welches Automatisch startet wenn man drauf geht. Nun möchte ich, das mit dem klick auf einen Button das Flash object zufällig ein flash von 3 oder mehr abspielt, nur ich bekomms irgendwie nicht hin. Wenn einer helfen kann, dann bitte so, dass ich es in NOF leicht machen kann. (: Mfg. Tro



All times are GMT +2. The time now is 19:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.