RE: [PHP] pop-up window in php???

From: Date: Tue, 30 May 2006 12:52:36 +0000
Subject: RE: [PHP] pop-up window in php???
Groups: php.general 
Request: Send a blank email to php-general+get-237078@lists.php.net to get a copy of this message
The code would be quicker and fewer lines if you did this with Javascript, but you could do it with PHP. Use an iframe for the yes / no options, create a form, then capture the response and display the results as you wish. Jef -----Original Message----- From: Adam Zey [mailto:azey@nit.ca] Sent: Monday, May 29, 2006 12:59 PM To: siavash1979@telus.net Cc: [php] PHP General List Subject: Re: [PHP] pop-up window in php??? siavash1979@telus.net wrote: > ok, maybe I didn't make my question too clear. I was mostly wondering if there > is a way to do it in PHP rather than Javascript. I would prefer only using php. > > and from the answers I got, I take it that there is no way of doing it in PHP. > > thanks, > Siavash > > > > Quoting Andrei <phplist@textbill.com>: > >> Not related to PHP, but u hava javascript confirm function or prompt >> (if you need input also). >> >> Andy >> >> siavash1979@telus.net wrote: >>> Hi all, >>> >>> Is there anyway to have a pop-up window to ask "are you sure? yes / no" in >> php? >>> I know you can do it in Javascript, but I'm not sure what's the best way >> to >>> implement it in php. I want the page to do nothing if "no" is pressed. >>> >>> any help would be appreciated. >>> >>> thanks, >>> Siavash >>> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> PHP is a server-side language. It cannot directly influence anything on the client-side. That is why you need to have your PHP script output a client-side scripting language such as JavaScript. You are still only executing PHP code on the server. Regards, Adam Zey. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#237078) next »