Chaned index from HTML to PHP