in reply to Re: get parameter from html page
in thread get parameter from html page

Why not just use encodeHTML($name) instead (or in addition, if you allowed &, <, or >).