Too much php, not enough javascript.