The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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. Smile

Thanks for the post.

- Ben