Multiple searchforms invalidate HTML
-
I have a template that uses a search form in the header and includes the file /searchform.php (this is based on the default 2.0 skin). It uses the standard ID searchform
When a search with no responses is found it, includes the searchform file in the main window prompting them to search again. However including the same form twice invalidates the HTML code as both forms have the same IDs. If I change the IDs of either of the forms (by having two seperate includes) then that form will no longer function.
Does any one know of a simple way of having multiple searchforms on one page? Otherwise there are info design ways around this – for example a prompt which says to try again above. However this is of course not as elegant ??
Cheers,
mummybot
- The topic ‘Multiple searchforms invalidate HTML’ is closed to new replies.