Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Steer 161 posts 596 karma points
    Feb 27, 2013 @ 13:09
    Tom Steer
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 27, 2013 @ 20:58
    Jan Skovgaard
    0

    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

  • Tom Steer 161 posts 596 karma points
    Feb 27, 2013 @ 21:15
    Tom Steer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft