Ok this is my problem.
When i input a piece of PHp code into an input field it is able to screw up the page which it posts too. How can i escape this and stop people executing malicious code from input boxes?? I have used htmlentities, urlencode and htmlspecialchars and they don't work. Any help would be appreciated.