Re: Passing verables along from Java Scripts
| From: | Richard Crawford | Date: | Sat, 02 Mar 2002 20:20:32 +0000 |
| Subject: | Re: Passing verables along from Java Scripts | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86912@lists.php.net to get a copy of this message | ||
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:rscrawford@mossroot.com http://www.mossroot.com
AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford
MSN: underpope@hotmail.com
"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!"