This will help anyone using PHP try to achieve the same goal. The above example uses ...
customSearchControl.execute("$q");
to read the passed parameter. On a PHP site you will use ...
customSearchControl.execute("<?php echo $_POST['your_paramter_name_here'];?>");
You can use $ _GET or $ _REQUEST if your parameter is not specified in the message.
Of course, you should first misinform the entrance. Something like this is pretty weak, but it's a start ...
customSearchControl.execute("<?php echo htmlentities( trim( $_POST['your_paramter_name_here'] ), ENT_QUOTES );?>");
Night owl
source share