Duplicate subscribe forms on same page and still have valid code


How can I have more than one subscribe form on the same page for the same mailing list and still have W3C Valid code?  When I generate a subscribe form it usually gives me something like,

<label for="uddjy-uddjy">Email:</label><br /><input type="text" name="cm-uddjy-uddjy" id="uddjy-uddjy" />

The only problem is if I create another element that also has that same ID of uddjy-uddjy I break validation.

Any workarounds?


Mathew Mathew, 7 years ago


You can actually change the IDs and the form will still work, as long as you do not change the name of any elements.

All good!

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
mibrenner, 7 years ago

Cool.  Thanks for the tip!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free