RE: [PHP-WIN] Re: Variable problems
| From: | George Pitcher | Date: | Mon, 10 Mar 2003 12:44:47 +0000 |
| Subject: | RE: [PHP-WIN] Re: Variable problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18943@lists.php.net to get a copy of this message | ||
Your buddy probably has register globals switched on.
George
> -----Original Message-----
> From: Reggie P [mailto:reggie@fpcomputing.com]
> Sent: 10 March 2003 12:40 pm
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Re: Variable problems
>
>
> Thanks, but I found out something really interesting! I was using
> php-win32
> version 4.3.0 and it would not process the variables. I took the
> same script
> and ran it a buddies server with version 4.0.6 and it ran fine. I unloaded
> 4.3.0 and loaded 4.0.6 on my server and the scripts ran fine!
> Make sense to
> you? Maybe there are some bugs in 4.3.0.
>
> Reggie P
>
> "Thomas Smart" <thomas@tsmart.nl> wrote in message
> news:20030310120947.9384.qmail@pb1.pair.com...
> > no, u just need to get the variable $test from the post befor
> you can call
> > it,
> >
> > if you call $test without letting php know that $test is the same as the
> > POST test it doesnt know what you are talking about.
> >
> > so in page 1 you have a form with textfields etc. the method is post
> > in page 2 you get the test var from the post by setting $test =
> > $_POST['test'];
> > then you can call $test, echo $test for example.
> >
> >
> >
> > "Reggie P" <reggie@fpcomputing.com> wrote in message
> > news:20030310020501.10417.qmail@pb1.pair.com...
> > > Now I get this error
> > >
> > > Notice: Undefined index: test in E:\websites\girls\cgi-bin\insert2.php
> on
> > > line 7
> > > Could I have installed something wrong? It is running on
> win2000 server
> > and
> > > IIS 5
> > >
> > > "Thomas Smart" <thomas@tsmart.nl> wrote in message
> > > news:20030309201053.17943.qmail@pb1.pair.com...
> > > >
> > > > in the page that recieves the variable add this:
> > > >
> > > > $test = $_POST['test'];
> > > >
> > > >
> > > >
> > > > "Reggie P" <reggie@fpcomputing.com> wrote in message
> > > > news:20030309183416.74715.qmail@pb1.pair.com...
> > > > > I am new to php and I am having problems passing
> variables from one
> > page
> > > > to
> > > > > another. I wrote a simple script as such:
> > > > >
> > > > > <html>
> > > > > <head>
> > > > > <body>
> > > > > <Form Action="./cgi-bin/insert2.php" METHOD=post>
> > > > > name <input type="text" name="test" size=20>
> > > > > <input type=submit name="submit" value="submit!">
> > > > > </form>
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > then pass to this page:
> > > > >
> > > > > <html>
> > > > > <head>
> > > > > </head>
> > > > > <body>
> > > > >
> > > > > <?
> > > > > print ("$test\n");
> > > > >
> > > > > ?>
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > I get this for the response:
> > > > >
> > > > > Notice: Undefined variable: test in
> > > E:\websites\girls\cgi-bin\insert2.php
> > > > on
> > > > > line 8
> > > > >
> > > > > Please help!!
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>