You are really going to need both to make the website the best it can be. PHP is run on the server and should be used to process the form and carry out any critical must have validation, for security reasons. Javascript is run on the clients machine and can be turned of or easily replaced. Use this to add extra user-friendly validation and features. Never have validation of the input done in javascript alone unless your system can handle the input without validation.
Adam