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? 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. 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? 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
Archived
This topic is now archived and is closed to further replies.