Script47 Posted June 3, 2015 Posted June 3, 2015 This is a expansion on [MENTION=64684]Dayo[/MENTION]'s jQuery Contact Form Maker. It is available for use here. You can find all the read me information here. Thanks to [MENTION=64684]Dayo[/MENTION] for all the ideas. Quote
sniko Posted June 3, 2015 Posted June 3, 2015 (edited) Nice! Though, your regex is flawed on line 64+. Using [A-z] will include all ASCII characters from the range A to z, which isn't intended (I would assume). See ASCII table. [A-z] will allow special characters like [, ], /, ^ - See example You're missing your anchors to match the entire string. For example; ^[A-z]+$ I wouldn't advise building the JSON string manually, either. I would build the array, then use JSON.stringify. Edited June 3, 2015 by sniko Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.