Reply to js to php -> random value from array

Your name:

Reply:


Posted by Peter Van Hove on 06/03/05 18:31

Hi all,

Again I run into an issue (that's when you are new to php I guess)

I need to convert this to php.
Some of it is clear but I'm not sure about the random value and all, pls.
let me know how to do this properly, without too many riscs


function dlfileurl()
{
var UrlArray=new Array("org", "com", "net", "biz", "info", "org", "com",
"net", "info");
var myurl=UrlArray[Math.floor(Math.random()*UrlArray.length)];
fullurl = "http://www.downloadurl." + myurl + "/product.zip";
window.open(fullurl) ;
}

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация