justlukeyou Posted July 1, 2012 Share Posted July 1, 2012 I've just changed a page to add a search function. However, for some reason it now affects a submit button for a discussion group. When I try to submit a question to the discussion table it now thinks that I am trying to perform a search in my other search code. Does anyone have suggestiosn on what is causing this? This is the code for the discussion form. <li class="buttons"> <input type="hidden" name="form_id" value="submit" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> </li> Quote Link to comment https://forums.phpfreaks.com/topic/265082-search-buttom-affecting-other-submit-button/ Share on other sites More sharing options...
Pikachu2000 Posted July 1, 2012 Share Posted July 1, 2012 I see nothing in the code you've posted that would cause the behavior you describe. Quote Link to comment https://forums.phpfreaks.com/topic/265082-search-buttom-affecting-other-submit-button/#findComment-1358411 Share on other sites More sharing options...
justlukeyou Posted July 1, 2012 Author Share Posted July 1, 2012 Should I be closing this form? <form action="/products/searchresults" method="POST"> <input type="text" name="keywords" size="20" class="homepagesearch" /> <input type="image" value="Submit" img src="/images/search.png" alt="Search" name="image" /> </div> Quote Link to comment https://forums.phpfreaks.com/topic/265082-search-buttom-affecting-other-submit-button/#findComment-1358413 Share on other sites More sharing options...
justlukeyou Posted July 1, 2012 Author Share Posted July 1, 2012 Yep, I should have closed the search form. meh Quote Link to comment https://forums.phpfreaks.com/topic/265082-search-buttom-affecting-other-submit-button/#findComment-1358414 Share on other sites More sharing options...
Pikachu2000 Posted July 1, 2012 Share Posted July 1, 2012 If it's solved, mark it solved . . . Quote Link to comment https://forums.phpfreaks.com/topic/265082-search-buttom-affecting-other-submit-button/#findComment-1358417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.