Prima cosa, usa F12 e verifica che cosa invia il tuo browser al server.

Poi usa print_r($_SERVER) per vedere cosa arriva al server.