updated php form posts handling