There is a tutorial for setting this up here...
http://www.cyberciti.biz/tips/change...hp-script.html
However, that being said, unless you're an expert with validation of user input and php I do not recommend you perform this operation as it's highly likely to end up leaving you vulnerable to multiple attack types.