The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
submit after validation - 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: submit after validation (/showthread.php?tid=1909) |
submit after validation - tmjcbs - Feb 20th, 2012 Hello, I'm probably missing something very basic but I can't seem to make Ben's validation script (PHP Validation - v2.3.3 ) work together with formtools: after a succesful validation I'm redirected to a page with the message: "process.php is not receiving any data. Note: this script cannot be loaded directly in your browser. Make sure your form is sending via POST." In the 'no errors' part of the script I have: Code: header("Location:http://www.vavorijnmondcollege.nl/formtools/process.php"); Any help is welcome, Theo RE: submit after validation - im4u_fforum - Jun 28th, 2013 Hi, I am not an expert but this might help.... Try deleting the words - location: This path should be entered in the form action field with the absolute path to the process.php file in your folder, for example: <form action="http://your website/formtools/any subfolder*/process.php" method="post"> * enter as required and omit if not required (Feb 20th, 2012, 2:53 PM)tmjcbs Wrote: Hello, RE: submit after validation - Joe - Jul 2nd, 2013 Theo, In addition to Alok's suggestion, the validation script needs to be called you need to add onsubmit="return rsv.validate(this, rules)" to the form tag as well <form ... onsubmit="return rsv.validate(this, rules)"> In case you missed the documentation on RSV here's the link for it: http://docs.formtools.org/tutorials/js_validation/?page=rsv_file Cheers, Joe |