Re: Simple Alert Message then Redirect?
| From: | Josip Dzolonga | Date: | Thu, 07 Apr 2005 17:55:29 +0000 |
| Subject: | Re: Simple Alert Message then Redirect? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212559@lists.php.net to get a copy of this message | ||
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