Hi,
I've made a custom database with a CMP and now I'm trying to develop a front-end for it. Everything is going great except I'm trying to create a search for it like this:
<form name="searchform" action="[[++site_url]][[~[[*id]]]]" method="get"/>
<input type="text" name="searchvalue"/>
</form>
This form should redirect me to the same page I'm but it always sends me to /index.php?searchvalue=test instead of /index.php?id=3&searchvalue=test
Does anyone know how I can pull this off?
Thanks
Quote from: culd at Dec 07, 2011, 02:53 AMHi,
I've made a custom database with a CMP and now I'm trying to develop a front-end for it. Everything is going great except I'm trying to create a search for it like this:
<form name="searchform" action="[[++site_url]][[~[[*id]]]]" method="get"/>
<input type="text" name="searchvalue"/>
</form>
This form should redirect me to the same page I'm but it always sends me to /index.php?searchvalue=test instead of /index.php?id=3&searchvalue=test
Does anyone know how I can pull this off?
Thanks
try without action:
<form name="searchform" method="get"/>
<input type="text" name="searchvalue"/>
</form>
This redirects me to the wrong page as well, but I've found a package called SimpleSearch which should do the trick.