Secure PHP mail form with account no and pass

I want to make a form customers can put in details and submit, as its not a form i want anyone to use i would like to give a person a account number and a password.,

If these 2 details are incorrect the form mail (PHPmailer-FE) wont send.

It took long enough to get the mailer working as im not a expert at php.
any help or advice or scripts will be appreciated.


You could either block it all off so that an AccountNumber&Password must be entered before the form is shown or you could have 2 more fields in the form, AccountNumber and Password, which can then be sent through with the form submission, if they are invalid, an error is thrown otherwise the form completes it’s submission.