views:

34

answers:

1

Hi. I tried this in my php site <a href=?command=value>hell yeah</a>

And this to get the value :

if(isset($_POST['command'])){

        $command=strip_tags($_GET['command']);

Does not seem to work.. Ps. The url have one this value also: ?lang=en_US

+6  A: 

Use $_GET instead of $_POST. And also put double quotes around the value of href attribute.

Hamid Nazari