On 4/7/2005 7:55:29 PM, Josip Dzolonga (josip@xxxxxxxxxxx) 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php