Jump to content

Problem with 2 forms on one page being submitted together


hgbarrett

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.