I am creating a web page which includes a very simple subscription form, basically collecting the email addresses of those interested in the product. For this form I am using rapidmail, which offers a service similar to mailchimp. My issue is that after the email address has been entered, the user is being redirected to a new page where a success (or error, in case the email address was faulty) message is displayed. What I want is for these messages to be displayed on the same page as the form, because the page I am being redirected to is, well, ugly. Rapidmail also offers the alternative to use an iframe, which interestingly enough displays success/error messages on the same page as the form; it is unfortunately equally ugly and its customizing options are very limited and do not fit the design of my page.
I was hoping that a solution like this would be possible, thopugh I do not know if rapidmail provides an "alternative endpoint" that allows me to "work with JSON" as in the link.
this is what my form looks like (pretty standard)
<form action="https://tools.emailsys.net/121/1550/18cxn42/subscribe/form.html" method="post">
<div class="form">
<div class="form_border">
<ul>
<li>
<label class="field_label required" for="email">E-Mail: </label>
<input type="text" class="form_field" name="email" id="email" value="" />
</li>
<li id="firstname_form">
<label id="firstname_label" class="field_label" for="firstname">Vorname: </label>
<input type="text" class="form_field" name="firstname" id="firstname" value="" />
</li>
<li class="form_button">
<input type="submit" class="form_button_submit" value="Anmelden" />
</li>
</ul>
</div>
</div>
</form>
</div>