I have created a second form (Newletter form) for the footer of the page. I've based it on the contact form script but it's just takes an email address. However when I'm on the actual contact form page and submit that it also submits the newsletter form. Any ideas what I might be doing wrong?
Issue with contact form and 2nd form on same page
Hello,
I have created a second form (Newletter form) for the footer of the page. I've based it on the contact form script but it's just takes an email address. However when I'm on the actual contact form page and submit that it also submits the newsletter form. Any ideas what I might be doing wrong?
Many Thanks,
Tom
Hi Tom
Is your content wrapped in a server side form? <form runat="server"> ?
If so that might be the issue - must admit that I have not been playing around with this package myself so I don't know how it's been setup initially.
/Jan
Hi Jan,
Thanks for the response.
I have actually found the error now; both scripts were using IsPost so I just changed it to use the following boolean:
bool isThisPost = !String.IsNullOrEmpty(form["contactSubmit"]);
Thanks,
Tom
is working on a reply...