Variables can only be passed to a PHP script via POST or GET.  So if you
want to pass JavaScript variables to a PHP script, you must do it that
way.

For your second question, look for the window.open() function in
JavaScript.  Your code would look something like this:

< form >
< input type="button" value="Press Me"
onClick="javascript:window.open(height=400,width=400,other parameters);"
>
< /form >

You must include the form tags for the button to render properly in
Netscape.



On Sat, 2002-03-02 at 12:11, Philip J. Newman wrote:
> Hi there, I have a few java scripts that have some verables that I wish to
> pass along to my PHP scripts.  Any ideas where to start.
> 
> Oh yah and noting to do with PHP ------
> 
> Can anyone give me a small java script that will pop up a 400x400pix window
> when a button is clicked ... can't wortk that out
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
Sliante,
Richard S. Crawford

mailto:[EMAIL PROTECTED]          http://www.mossroot.com
AIM:  Buffalo2K   ICQ: 11646404  Yahoo!: rscrawford
MSN:  [EMAIL PROTECTED]

"It is only with the heart that we see rightly; what is essential is
invisible to the eye."  --Antoine de Saint Exupery

"Push the button, Max!"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to