The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
How to validate using post, then post to form_tools? - 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: How to validate using post, then post to form_tools? (/showthread.php?tid=455) |
How to validate using post, then post to form_tools? - timsharp03 - Jan 26th, 2010 No-one else seems to have a problem with this so I'm wondering why I haven't worked it out. I have a form that worked OK with the post <form action="http://trotters.co.uk/Scripts/form_tools/process.php" method="post"> I then went through the javascript validation tutorial, but this also shows a post to <form action="" method="post" onsubmit="return rsv.validate(this, rules)"> If I have 2 post statements on the same form, it only goes to the first one, so I can get it to either validate, or send to form_tools, but not both. Forgive me for my apparent stupidity, but what am I missing? RE: How to validate using post - It's been a long day! - timsharp03 - Jan 26th, 2010 I've been away and come back and now of course I realise that you don't post the form twice, you just add the onsubmit into the form tag! <form action="http://yoursite.com/Scripts/form_tools/process.php" method="post" onsubmit="return rsv.validate(this, rules)"> I didn't get much sleep last night so my addled brain didn't comprehend the tutorial! RE: How to validate using post, then post to form_tools? - Ben - Jan 31st, 2010 Haha no, not at all. If it doesn't make sense, chances are the tutorial isn't clear enough. Thanks for the post. - Ben |