Page 1 of 1

Problem with sending variables to a diffrent page.

Posted: Sun Jul 05, 2009 1:32 am
by badihi
Hello.
I started PHP Programming two days ago!
When I send some variables to a diffrent page by GET method like this:
localhost/b.php?user="Peter"
in b.php page the variabe "user" is not defined.
Can somebody help me?

Re: Problem with sending variables to a diffrent page.

Posted: Sun Jul 05, 2009 1:37 am
by paqman
All variables sent through the GET method, in the URL, will be stored in the $_GET array. So for yourpage.php?user=123 $_GET["user"] would equal "123".

Re: Problem with sending variables to a diffrent page.

Posted: Sun Jul 05, 2009 7:11 am
by badihi
Thanks very much Mr. paqman.
God blass you!