Hello,
I use a index.php to control the access of pages.
Here is the mechanism:
Index.php redirects the page to search.php; code: index.php/?page=search
the path of search.php is : pages/search.php
, search.php includes header.html, body.html etc.
Now in body.html we call search.php using: index.php/?page=search
parameter, and body.html includes this code: index.php/?page=search?query='.quote_replace(addmarks($query)).
You can see there are two '?'. And it's just this problem.
When i browse search.php, it displays in url: xxx.com/?page=search
.
When i click the button in search.php while actually in body.html, it displays in url xxx.com/index.php/?query=&search=1
.
In this way, the browse just display page index.php. But i want to display the search result in search.php, and it should display xxx.com/?page=search/?query=&search=1
. But you can see /?page=search
disappears and /index.php
appears here.
I'm sorry, the condition is complex and i don't describe it very well. If you couldn't understand it very well, i'll explain.
So, do you have any advice about that? Thanks a lot.