use CGI $q = new CGI; $string = $q->param('string');