xwishmasterx Posted June 8, 2012 Share Posted June 8, 2012 Hello I am trying to add a form inside a loop, as I need the same form under each looped table. Is there any tricks to make these forms behave seperately, so when a form is processed it doesn't trigger all the forms adding several rows to the database? Quote Link to comment https://forums.phpfreaks.com/topic/263852-adding-a-form-in-a-loop/ Share on other sites More sharing options...
mroberts46 Posted June 8, 2012 Share Posted June 8, 2012 I don't know. Your issue seems to be more complicated than mines. I just want to get my registration form working before 0730 (eastern). However, This definately something I would like to know the answer to when you find out. Quote Link to comment https://forums.phpfreaks.com/topic/263852-adding-a-form-in-a-loop/#findComment-1352105 Share on other sites More sharing options...
Drongo_III Posted June 8, 2012 Share Posted June 8, 2012 Presumably within your loop when you generate the forms you generate them with a separate submit button? If so, there shouldn't be an issue where all forms get submitted. If they are all part of the same form however then you might want to simply run some checks on submission to check for empty fields - discarding them if they're empty. Hello I am trying to add a form inside a loop, as I need the same form under each looped table. Is there any tricks to make these forms behave seperately, so when a form is processed it doesn't trigger all the forms adding several rows to the database? Quote Link to comment https://forums.phpfreaks.com/topic/263852-adding-a-form-in-a-loop/#findComment-1352120 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.