Internal or External

Hi guys,

Im just wondering what is the best method for using php in my forms. Of late ive been including it internally and saving the contact/form page as php but ive been told this is not a safe way and should be done externally… How true is this?

Cheers.

Including it internally as in PHP code used in the same physical file the form? There is absolutely nothing wrong with that.

Yes the same file.

so the file contact.html would become contact.php with the php code inside it?

Thanks, ill continue to do this.