Thread:Project:Support desk/PHP and MySQL Queries/reply

Use the $wgRequest global. Example:

You'd need to do more, like escaping input to prevent XSS, but this is a quick example.