I am using vBulletin and the login uses this to cross-refer to the database.
md5(md5($pass).$salt)
How do i make a PHP script such that every password input will automatically be hashed and salted as well so that it is able to authenticate with the vBulletin database ?
Just use the code you posted. Get the form data and wrap it in the appropriate md5() function.