-6

I have no time and too tired to struggle with this, so I decided to ask here: I've created the file my.php which contains only:

<?php var_dump( $_POST ); ?>

And then I open the file using browser like this:

www.domain.com/my.php?post1=hey&post2=ho&post3=letsgo

And in the browser I have array(0) { } as a response.

Question: What could I possibly done wrong??

Thanks!

LoomyBear
  • 369
  • 1
  • 7
  • 18

2 Answers2

2

In URL are GET parameters, not POST.

echo $_GET['post1']; // hey
echo $_GET['post2']; // ho
echo $_GET['post3']; // letsgo
pavel
  • 24,015
  • 8
  • 38
  • 57
1

You cant pass POST variables through URL. u r using GET method..

Subin S V
  • 138
  • 3
  • 12