Re: PHP in a javascript function with DB calls.

From: Date: Tue, 10 Sep 2002 16:24:29 +0000
Subject: Re: PHP in a javascript function with DB calls.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21675@lists.php.net to get a copy of this message
Umm, the body tag in HTML has an onLoad parameter. So: <body bgcolor="black" onload="javascript:window.new('url');"> That code for the window.new is probably wrong, but that will do it. Adam Voigt adam.voigt@cryptocomm.com On Tue, 2002-09-10 at 11:20, Aaron Wolski wrote: > Hi All, > > I HOPE this is the right place for this.. if not I am sorry!!! > > > > I'm hoping someone can put me on a clear path of how to do what I am > asking here. > > I Have a shopping cart... and in this shopping cart I want to feature > some items in a pop_up window when the user is ready to check out - if > they are not already selected. > > For example.. Someone buy a Hockey Stick but don't buy hockey tape.. > > when when they go to check out.. I want a pop_up to be launched asking > the user if they want to add Hockey tape to their order for onlu $$$. > > For this to happen I need to have an onLoad on the checkout page that > calls a javascript function that has PHP code to find out IF a > paritcular product is selected to see if the other has been selected > too, if it's NOT selected then launch the pop_up. > > Does ANYONE have any idea's as to how this can be accomplished?? > > Anyhelp is appreciated!!!! > > thanks all. > > Aaron >

« previous php.db (#21675) next »