Random Selection of String Value
From: Mike Lepore (lepor5e_at_bestweb.net)
Date: 10/30/04
- Next message: Chung Leong: "Re: Headers for streaming files"
- Previous message: Fox: "Re: Choose random image from dir and display it"
- Next in thread: brommer: "Re: Random Selection of String Value"
- Reply: brommer: "Re: Random Selection of String Value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Oct 2004 03:19:59 -0400
Please tell me how I can randomly select a string from a limited set
of string, and then use it in links.
With equal probability, suppose half the time I want
to form a link to domain.com/1234/page.htm and half the time I
want to link to domain.com/5678/page.htm . I would like to be
able to put something into my link such as:
domain.com/<?php ... WHAT GOES HERE? ... ?>/page.htm
If possible, I'd like to use a method that will put either 1234 or
5678 into a variable, so that, once it's randomly chosen for a
document sent to the browser, then numerous references to that
same string value can be used on the page.
Thank you.
-- Mike Lepore -- lepore at bestweb dot net delete the 5
- Next message: Chung Leong: "Re: Headers for streaming files"
- Previous message: Fox: "Re: Choose random image from dir and display it"
- Next in thread: brommer: "Re: Random Selection of String Value"
- Reply: brommer: "Re: Random Selection of String Value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|