[fl8 as2] lol this is probably a loaded question

How do you make a secure (ssl) contact form using php as2 and mysql? I went through the tutorial on kirupa but it starts out by saying it’s not secure… a buddy of mine got ripped off bigtime by not having his users submit requests securely- I guess the hacker was somehow getting him/herself cc’d in on all the user forms submitted on his site. Any way to make a form secure?