Update newchar.php

needs refactoring, badly.