I would say submit the entire form and have the text box take precedence over the drop down.
Thank You Chuck Reeves Email: chuck.ree...@gmail.com On Wed, Aug 19, 2009 at 1:00 AM, Mangesh Sathe <mang...@ascellent.co.in>wrote: > hello everyone, > > This is Mangesh Sathe. > > I am facin' small problem in ajax. > > I have created one form which contains entries like his/her > name,address,country, state ,bank name(dropdown list) , birth date > etc... > when i submit this form all the above data goes to databse correctly ... > > now if his/her bank name is not in the dropdown list , then he enters his > bank name in textbox & clicks on first button > so insted of submitting entire forn ,i want to insert only bank name in > database using ajax. > ( i am sending bank name to .js file & then call .php file > > Buttons in the form, > first one is for adding bank name in database,if it does'nt exist in > Dropdown list > (Drop downlist---Textbox----Button1) > second one is to submit entire form. > > Reply plz > -- > Thanks & Regards, > Mangesh Sathe > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php >
_______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php