Re: Simple Alert Message then Redirect?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PartyPosters wrote:

Hello I want to display an alert message then after users click ok I want to automatically goto a URL

if ($var_stock_count == 0){ alert("Message")
redirect("http://www.google.co.uk";);


   }


This should be done with JavaScript, not PHP, so something like :

<script language='JavaScript'>
   alert("Message");
   window.location = "http://www.google.com";;
</script>

should do the work ;-).

Hope this helps,

--
Josip Dzolonga
http://josip.dotgeek.org

jdzolonga[at]gmail.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux