|
So, I've been trying to write a memory test program, with images (thus, C is out of the question, for cross-platform issues). I've come across an interesting problem. To prevent users from crashing the system, I resorted to $_POST. However, upon testing, I noticed that print_r($_POST) shows nothing, while the same code (except for method="post" => method="get") runs perfectly, and data is transmitted properly when the form uses get. Any idea on what's going on? The outputs for print_r($_POST) and print_r($_GET) are as follows:
Using POST:
Array ( [id] => 1 )
Array ( )
Using GET:
Array ( [id] => 1 [qn] => 20 [ans] => Array ( [2] => W [4] => images/ser.GIF ) )
Array ( )
GET shows what I want if I were using post, but it's not happening. Any ideas, guys?
Thanks in advance,
~wqian94~
|