Getting PHP & Form variable in different operating system

Why Windows code does not working in Linux and Unix or Linux code does not working in Windows and Unix.

This is the most frequently asked question in PHP. While running a PHP document in Windows we get the form variable by either GET or POST method. For which we use the following code:

$name=$_POST[“txtName”]; or $name=$_GET[“txtName”];

While using the same code in Linux and Unix you will get a error message. To solve this problem or to run a PHP page in a different operating system without any errors, first declare the GET variables and POST variables globally using the following code.

Use this code in every page or declare it in the common page and include the common page in every other PHP page.

Ashesh

सयौ थुङ्गा फूलका हामी एउटै माला नेपाली, Welcome to my webpage. I'm from the Himalayan Country of Nepal. Well talking about me, I like mostly Web programming and Designing and furthermore I like Philosophical literature, Photography, Social networking. And I am Romantic and Sentimental person to some extent. Read more...