Title: Multiple searchforms invalidate HTML
Last modified: August 18, 2016

---

# Multiple searchforms invalidate HTML

 *  [mummybot](https://wordpress.org/support/users/mummybot/)
 * (@mummybot)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [invalidate](https://wordpress.org/support/topic-tag/invalidate/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [mummybot](https://wordpress.org/support/users/mummybot/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/multiple-searchforms-invalidate-html/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
