Re: Opening a popup window?
| From: | memoimyself at yahoo dot com dot br | Date: | Tue, 17 Feb 2004 01:43:04 +0000 |
| Subject: | Re: Opening a popup window? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177893@lists.php.net to get a copy of this message | ||
Hello Shaun,
On 16 Feb 2004 at 22:23, Shaun wrote:
> I have a form on a page. If certain options are selected on that page
> I need a popup window with a select option on there to appear. How can
> I make this happen with PHP, or do I need to use some JavaScript?
PHP is a server side scripting language, which means it is parsed by software on the
server before anything is sent to the client. That's why you don't see any PHP code if
you look at the source of a web page on a client machine.
The opening and closing of windows, on the other hand, is something that happens on
the client side and depend on the client's browser, among other things. PHP has
*nothing* to do with the client's browser other than the fact that it receives some
identification information from the browser. In order to pop open windows or do anything
else on the client's computer, you'll need a client-side scripting language, i.e. one that
is
processed on the client's computer. One such language is JavaScript, which will take
care of all your window-opening needs.
Hope this helps,
Erik