In the name.php file try to
echo "Hello ".$_GET["name"];
If it works mean that you have register_globals = off in your php.ini file.
Make the register_globals = on and the echo "Hello $name" will work but I
advive you to not make the register_globals = on due to some security
issues.
--
Best re
as of php 5 the register globals is not even going to be an option so get
used to using $_POST and $_GET !!
"Rich Gray" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Thanks, but I found out something really interesting! I was using
> > php-win32
> > version 4.3.0 and it would no
> 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 fin
Your buddy probably has register globals switched on.
George
> -Original Message-
> From: Reggie P [mailto:[EMAIL PROTECTED]
> Sent: 10 March 2003 12:40 pm
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Variable problems
>
>
> Thanks, but I found out something r
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 sens
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 t
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 vari
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:
>
>
>
>
>
> name
>
>