The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
check if user already exists - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: check if user already exists (/showthread.php?tid=681)



check if user already exists - badolm - May 2nd, 2010

Hello Sir
before the post go to database, I want to Check Whether user is Already exists in the database, if It is Already Exists then I want To Show
MsgBox, else that will Store in Database.
tks !
OLM


RE: check if user already exists - Ben - May 6th, 2010

Hey badolm,

Sure, no problem! If you're using a simple POST form, you *will* have to move your form use the API, though.

Once you're using the API, you can use this function on your form:
http://docs.formtools.org/api/?page=ft_api_check_submission_is_unique

That lets you query the database to check to see if the user has already signed up / submitted the form or not. You can pass any criteria to that function to determine the submission's uniqueness.

Let me know if you need a few more pointers.

All the best -

Ben


RE: check if user already exists - badolm - May 8th, 2010

thanks indeed my friend, no doubt that its the soluction!



(May 6th, 2010, 8:33 PM)Ben Wrote: Hey badolm,

Sure, no problem! If you're using a simple POST form, you *will* have to move your form use the API, though.

Once you're using the API, you can use this function on your form:
http://docs.formtools.org/api/?page=ft_api_check_submission_is_unique

That lets you query the database to check to see if the user has already signed up / submitted the form or not. You can pass any criteria to that function to determine the submission's uniqueness.

Let me know if you need a few more pointers.

All the best -

Ben