Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 30, 2006, 7:48 am
rate this thread
I would like to know if there is a way in php to randomize
the following url (www.domainsample.com used as example).
I have 4 different urls I would like to use, basically changing
every time the page is accessed.
new_window = window.open('www.domainsample.com','domainsample',
Any assistance would be great.
Re: Random window.open
I'm not sure what your question is. You ask if you can do something in PHP,
the answer is yes - put the url's you want to randomize in an array, call rand()
to get a random number between 0 and the number of array elements - 1 and write
And BTW - when using example domains, you should use www.example.com - which has
been reserved for that reason.
Remove the "x" from my email address
JDS Computer Training Corp.