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@xxxxxx] Sent: Monday, May 29, 2006 12:59 PM To: siavash1979@xxxxxxxxx Cc: [php] PHP General List Subject: Re: pop-up window in php??? siavash1979@xxxxxxxxx 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@xxxxxxxxxxxx>: > >> Not related to PHP, but u hava javascript confirm function or prompt >> (if you need input also). >> >> Andy >> >> siavash1979@xxxxxxxxx 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php