Arduino is able to connect to server but not POST temperature data to php

I changed the permissions of post.php and temp.html and it seems like something is working now at least, but when I run the php code I get something like this:

PHP Warning:  Undefined array key "temp" in /var/www/html/test/post.php on line 2

And the temp.html file just shows "(the time) - " without the time or temperature data.