mark_c Posted April 15, 2010 Share Posted April 15, 2010 HI, I'm doing a small database for stock management. I have two tables 1. Item_list 2. item_adding In my form1 text field ("type") when I start to type JavaScript will show the list from "Item_list" table. When I click on one of that it will auto fill the text field. When I submit data is adding to item_adding table. My problem is after selecting the item from the list user can edit it. But I need to add to the "Item_list" only what we select from the list. If any one can help me to validate my form. Thanks in advance. Mark Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/ Share on other sites More sharing options...
Deoctor Posted April 15, 2010 Share Posted April 15, 2010 My problem is after selecting the item from the list user can edit it. But I need to add to the "Item_list" only what we select from the list. cant get what u wanted?/ Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042294 Share on other sites More sharing options...
oni-kun Posted April 15, 2010 Share Posted April 15, 2010 Yes, it'd help if you gave us code to help you on, Not just a concept. Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042296 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 Sorry for not giving proper idea I need to add only the items in table item_list If text field value is not = to item_list values error message has to come up " Please check the item cord" Thanks Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042297 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 Attached is my codes [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042299 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 type text filed shod accept only values in my item_list table Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042301 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 Shttp://www.phpfreaks.com/forums/Smileys/nrg_alpha/rtfm.gifomebody please.................................... help me please... please.... please............................................ Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042323 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 Anybody like to help me......? Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042341 Share on other sites More sharing options...
mark_c Posted April 15, 2010 Author Share Posted April 15, 2010 somebody please help me Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042385 Share on other sites More sharing options...
prasanthmj Posted April 15, 2010 Share Posted April 15, 2010 If you want to make sure that the user can add only from a list, why not make a drop-down list instead of a text field? Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042526 Share on other sites More sharing options...
mark_c Posted April 16, 2010 Author Share Posted April 16, 2010 In my list I have too many items. This search option is helpful to users to find Items. Quote Link to comment https://forums.phpfreaks.com/topic/198622-php-custom-form-validation/#findComment-1042813 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.