![]() |
Multiple search forms
Hopefully someone can help me with this. I'm sure I did this the wrong way, but given my somewhat limited knowledge(zero), I'm not sure how else to do it. I sell books online I am now able to search for books by author, title, isbn or subject with just the 1 search box, but I want 4 seperate search forms or boxes with dedicated fields. I created a template where I copied and pasted the code to create 4 boxes and it works, but there is a caveat. When the results are displayed it also displays whatever you search for in all 4 of the boxes. Ex: if you enter Stephen King into the author box, then when the results are displayed it now says Stephen King in all 4 search boxes. Not a huge problem, but it looks ugly. Any suggestions would be greatly appreciated. I'm using 3.4.14
|
Can you post the code? That would really help. I have an idea but would be easy to confirm if I saw the code.
Carrie |
Here's the code from the template for the search boxes.
Code:
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%"> And here's the code from the search.php file (that I got from another thread) for the different search fields: Code:
// LOOK HERE |
This line in each of the <input> tags is what is making the same text show up in each of the inputs.
Quote:
You can remove this completely from all 4 as it's not necessary, but just a convenience. Or just leave it in 1 of them, although that doesn't really make sense either. If you had a different "name" for each of the <input> tags, then you could use this feature and just change it to be Quote:
to have it populate each of the text boxes with the previous values. If you wanted it to do it like this, you'd have to change the php code to reflect these changes. Hope that wasn't too much information or too confusing. The simplest way to fix it is to remove Quote:
Hope that helps. Carrie |
That worked great! Thank you very, very much - really appreciate the assistance.
|
Not a problem! :D
Carrie |
All times are GMT -8. The time now is 06:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.