knowram Posted June 26, 2007 Share Posted June 26, 2007 I created this function which works great. function myFunc(item) { cbsel(item); document.test.submit(); } however i don't know if it is possible but I would like to submit the info that is held in item something like this. function myFunc(item) { cbsel(item); document.test.submit(item); } is that possible and how would i do it. thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/57302-help-building-a-function/ Share on other sites More sharing options...
Corona4456 Posted June 26, 2007 Share Posted June 26, 2007 the only way I can think of is if the form you are submitting has the item's fields in it and I'm assuming item is an object or array? right? function myFunc(item){ cbsel(item); document.test.field = item.field // or item[0] ... document.test.submit(); } Quote Link to comment https://forums.phpfreaks.com/topic/57302-help-building-a-function/#findComment-283307 Share on other sites More sharing options...
knowram Posted June 26, 2007 Author Share Posted June 26, 2007 Thanks for the help but i think i am going to have to do it a different way Quote Link to comment https://forums.phpfreaks.com/topic/57302-help-building-a-function/#findComment-283334 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.