Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Richard Crawford
There is no way of passing a variable from JS to PHP without sending something back to the server or using a cookie. I haven't followed the thread at all, but if I needed to pass a value from a pop-up window to a PHP program, I'd probably do something like this: In the pop-up window, once the fo

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 12:26 PM, bvr wrote: > > Storing variables on the client-side using JavaScript > can be done by setting a cookie. > > The cookie data will ofcourse be available to PHP when > the next script is executed (for example through a link or redirect). > Ahh... is th

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
Storing variables on the client-side using JavaScript can be done by setting a cookie. The cookie data will ofcourse be available to PHP when the next script is executed (for example through a link or redirect). bvr. On Wed, 6 Feb 2002 11:13:01 -0500, Erik Price wrote: >Sounds like if you don

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
For info on JavaScript functions, like window.open() use google to find resources. For passing back values to PHP you need a script that does 2 things: - Ask for the email address - Handle the address with PHP Because PHP will not wait for a user to put in it's e-mail address, these are two s

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 01:06 AM, Zhunbao Zhi wrote: > if ($need_to_know_your_email) { > //popup one window to get the user' email > JavaScript:window.open(leave your email address); insert PHP code to store variable as a session variable here -- will require the user to "s

[PHP] how to pass value from popup window to php program

2002-02-06 Thread Zhunbao Zhi
Hi all, I am a new comer for PHP. now my situation like below, to express clearly i used some expression instead of PHP code in below php code: if ($need_to_know_your_email) { //popup one window to get the user' email JavaScript:window.open(leave your email address); //then i try to

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 10:52 AM, Zhunbao Zhi wrote: > I do not know whether it can be implemented or not, if > it can be done, i really do not know how to produce > the popup window and how to pass value from the popup > window to the php main code. One way to do it is to store the

[PHP] how to pass value from popup window to php program

2002-02-06 Thread Zhunbao Zhi
Hi all, I met one problem as below. To express clearly i use some psu-code instead: //this is php code if ($need_user_email_address) { //we popup a window to let user fill his/her email popup_window($give_me_your_email); //we get the user email from the popup window echo "your email