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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php