samedi 6 avril 2019

Passing POST parameters to PHP does not work

I am sending parameters to a PHP file as a POST request, direct from my browser like :

example.com/ with example.php ? CID=1

But not getting the values in the PHP file.

I am sending parameters to a PHP file as a POST request, direct from my browser like

in the php file i am trying to read :

$cid = $_POST["CID"]; $cname = $_POST["CNAME"];

But the local variables are null after executing this.

I also tried doing this : echo var_dump($_POST);

and it returns : array(0)

i am hosting this on a paid hosting server, and the configuration allows upto 1000 parameters.




Aucun commentaire:

Enregistrer un commentaire