The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Validating 2 Forms on One Page - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18) +--- Thread: Validating 2 Forms on One Page (/showthread.php?tid=1661) Pages:
1
2
|
RE: Validating 2 Forms on One Page - Ben - Oct 17th, 2011 Hi Mark, Ah, the problem is the hyphen. Form fields should only ever have a-z, A-Z, 0-9 and underscores. Any other characters confuse server-side code, or get stripped or converted. In this instance, Smarty is trying to do math on your email template ($ANSWER_e minus "mail"), which for some reason comes out as 0. To solve it, you'll need to change the name attribute of your email field in your form, then update it on the Edit Form ->Fields tab, then lastly update your email template. Hope this helps - - Ben RE: Validating 2 Forms on One Page - mark49 - Oct 19th, 2011 That was it Ben, thank you very much, Mark |