hgbarrett Posted March 20, 2007 Share Posted March 20, 2007 I have a website with a "join our mailing list" form that shows up on all pages of the website. It has input for just someone's email address. It is inserted on each web page via an include file. In this website is a contact page that has it's own feedback form with name, email address and comments inputs. Both forms are coded very much the same. The problem is that when the submit button is pressed for either of the forms, it also triggers the processing of the other form. I am very new to php so I am not sure how to distinguish one form from the other so that only one form gets processed upon pressing the submit button. I don't know if it's done with $_POST or the submit button or what. I am hoping that this is an easy problem to solve and that someone out there is quite familiar with it. Any ideas would be appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/43436-problem-with-2-forms-on-one-page-being-submitted-together/ Share on other sites More sharing options...
Daniel0 Posted March 20, 2007 Share Posted March 20, 2007 How is this specifically related to OOP? You may have a class, but if it's just basic code then this isn't the correct forum. Link to comment https://forums.phpfreaks.com/topic/43436-problem-with-2-forms-on-one-page-being-submitted-together/#findComment-210960 Share on other sites More sharing options...
hgbarrett Posted March 20, 2007 Author Share Posted March 20, 2007 Oops! Sorry, didn't mean to post here. Will post elsewhere. Link to comment https://forums.phpfreaks.com/topic/43436-problem-with-2-forms-on-one-page-being-submitted-together/#findComment-211182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.