Well, you should always check the data on reception at the server. No point in actually protecting your html-code/forms, as this will be accessible in most cases anyway (you might do it with javascript, but it's not safe).
But check the data posted by the form, wether it is from another server or your own, and remove tags and other unwanted chars.
You KNOW what data is to be recieved, and probably also what format the data's not supposed to have. In addition, you can check if the request method is correct (POST), and collect http-data (ip, useragent) from your clients.
A lot of possibilities, but the safe way is to protect the php-code in the recieving end 😉
knutm