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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> in the page that recieves the variable add this:
>
> $test = $_POST['test'];
>
>
>
> "Reggie P" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > 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

Reply via email to