The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
RSV form validation between different domains? - 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: RSV form validation between different domains? (/showthread.php?tid=1452) |
RSV form validation between different domains? - SteadmanTech - Jul 11th, 2011 I'm not sure if I can do this or not. I've tried and the validation simply does not happen. The form is simply submitted whether required items are present or not. Here is what I am trying to do... Form Tools is installed on my business server (myserver.com) User response form is built into my client's web site (clientserver.com) I am trying to point the form on clientserver.com to Form Tools at myserver.com. I am calling the script in the head section of the form page using an absolute url pointed to myserver.com and I've included the rsv.js script call in the form 'action' parameter. Code: <form method="post" action="http://myserver.com/form_tools/process.php" name="Contact_form" id="Contact_form" onsubmit="return rsv.validate(this, rules)"> Form Tools is doing its job as I can see that the form submissions are making their way into the FT database and Form Tools is responding by sending the form user on to the Redirect URL. I just don't get any validation. If this should work, what am I missing? RE: RSV form validation between different domains? - Ben - Jul 21st, 2011 Hi Steadman, I'm terribly sorry for missing your post. So! If the validation is failing, that means you have a JS error somewhere. First thing I always do is enable errors in the browser so I can see what problems occur. In your case, check your path to the rsv.js library to make sure it's being included. That would be my first bet. Failing that, there's another javascript error occuring on your page that's preventing the validation from executing. But I'd definitely start by enabling JS errors so you can see the problem. Good luck...! - Ben |