Re: Simple Alert Message then Redirect?

From: Date: Thu, 07 Apr 2005 19:11:55 +0000
Subject: Re: Simple Alert Message then Redirect?
Groups: php.general 
Request: Send a blank email to php-general+get-212573@lists.php.net to get a copy of this message
On 4/7/2005 7:55:29 PM, Josip Dzolonga (josip@dotgeek.org) wrote: > 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 ;-). > Meta refresh too would do the job quite nicely.... Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005

« previous php.general (#212573) next »