Ok, will explain.
I have a page and in the template, I have added a form that submits to itself. Also in the page template is the code that handles the form submission. This code retrieves and displays the results. Only 10 records are displayed and links created for page 2, 3 and so on of the results.
The links for the other pages are dynamically constructed by appending the submitted form data. The code uses
$_SERVER[‘PHP_SELF’]?searchSubmit=true&page=2&searchName=somevalue&searchState=somevalue&searchRating=somevalue
The problem is $_SERVER[‘PHP_SELF’] gives index.php. I want it to reference the page with the template code. How can I add that reference to the page?