Thread: php help
View Single Post
Old 08-28-2007, 02:05 PM  
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
php help

so I am trying make a script that will goto 1 url or the other randomly

I figured I would make it select a random number then if $num = 1 goto www.google.com and if $num = 2 then goto www.yahoo.com

I can't seam to get it to work I can however get the number part to work


<?php

$num = mt_rand(1, 2);
echo($num);



?>



how would I go about finishing that?
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote