...

View Full Version : php 4 _GET problem



alaios
09-11-2005, 05:11 PM
I have the following problem

This php code dont print echo ' <br> I authorized einai ' . $_GET['$authorized']; tha variable when i set it on the url
http://mysite.php?authorized=1

I dont know why perhaps something is missing in php.ini..
apache 2. php 4
ubuntu 5

Kid Charming
09-11-2005, 05:50 PM
Data labels passed through GET or POST are array keys, not variables. Try



echo ' <br> I authorized einai ' . $_GET['authorized'];

alaios
09-11-2005, 10:10 PM
whats the difference between the line u have written with my new line?

Kid Charming
09-11-2005, 10:30 PM
The dollar sign. Your code is looking for an array element called "$authorized" instead of just "authorized".



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum