Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Question: variable From: CIMPOESU Teodor (teo <email protected>)
Date: 03/12/99

Apostolis Anagnostopoulos wrote:

> On Thu, 11 Mar 1999, CIMPOESU Teodor wrote:
>
> > Apostolis wrote:
> >
> > > Please help
> > > i try to pass a value from a file to another
> > > hier the files
> > > (sorry for my english)
> > >
> > > File Nr 1
> > >
> > > <html>
> > > <head>
> > > <title>test</title>
> > > </head>
> > > <body>
> > >
> > > <FORM NAME=inputForm METHOD=POST>
> > > <INPUT NAME=DATE1 SIZE=10>
> > > <a href="#" onClick="window.dateField =
> > > document.inputForm.DATE1;calendar =
> > > window.open('calendar.php3','cal','WIDTH=480,HEIGHT=270')">go </a>
> > > </FORM>
> > >
> > > </body>
> > > </html>
> > >
> > > File Nr 2
> > > <HTML>
> > > <body>
> > > <?php
> > >
> > > print("$DATE1"); //test for DATE1 . hier is nothing why??????
> > >
> >
> > [...]
> > very simple, because it just cannot be.To be something there you must pass the
> > variable
> > through GET or POST method to your php script.
> ok.
> but when i try this
> ----
> <form name=inputForm action="./calendar.php3" method=post>
> <input name=DATE1 size10>
> <input type="submit" value="go">A
> </form>
> ----
> the window nr1 desapeared.
> what i dont like.
> how can i open a new window and pass a variable to.

[ patch :-) ]
Instead of :
        <form name=inputForm action="./calendar.php3" method=post>
  say:
        <form >
Instead of:
<input type="submit" value="go">
 say:
  <input type="button" value="go"
onClick="window.open('calendar.php3?DATE1='+this.form.DATE1.value,'cal','WIDTH=480,HEIGHT=270')">

and it will work...

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>