-2

So I have this url:

Api.php?action=signup&name=Kalle&email=kalle@hiof.no&password=kalle&studieretning=IT&year=2000

To get the name out is it correct to have

echo $_POST['name'];

Cause in my case this ain't working

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149

1 Answers1

1

If you are using the querystring (which you are) then data arrives to PHP in the $_GET array not the $_POST array

So that would be

echo $_GET['name'];
RiggsFolly
  • 93,638
  • 21
  • 103
  • 149