You are here: Re: [PHP] Simple Alert Message then Redirect? « PHP « IT news, forums, messages
Re: [PHP] Simple Alert Message then Redirect?

Posted by PartyPosters on 04/07/05 21:59

Thanks for you reply.
I need to be able to test the php variable though, is the anyway I can call
the
java funtion from my if statement?


----- Original Message -----
From: "Josip Dzolonga" <josip@dotgeek.org>
To: "PartyPosters" <sales@partyposters.co.uk>
Cc: <php-general@lists.php.net>
Sent: Thursday, April 07, 2005 6:55 PM
Subject: Re: [PHP] Simple Alert Message then Redirect?


> 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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация