I’m trying to see if there is a way to pass custom hidden form fields when doing a simple search. Here is a sample code of what I’m trying to do:
<html>
<body>
{exp:search:simple_form channel="mychannel" results="2" no_result_page="search/no_results" result_page="search/results" status="open" search_in="everywhere" id="frmSearch" name="frmSearch"}
<input type="hidden" name="frmType" id="frmType" value="MyCustomValue" />
<input type="hidden" name="keywords" id="keywords" value="SomeSearch" />
{/exp:search:simple_form}
<script>
function searchForm()
{
var f = document.forms['frmSearch'];
f.submit();
}
searchForm();
</script>
</body>
</html>I want to be able to capture the hidden value field from the ‘frmType’ in my results page like this:
<?php
echo $_GET['frmType']."
";
?>
or
<?php
echo $_POST['frmType']."
";
?>Is this possible?
Thank you,
Mike