Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Random Selection of String Value
- Mike Lepore
October 30, 2004, 8:19 am
rate this thread
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.
Mike Lepore -- lepore at bestweb dot net delete the 5