rwh Posted November 23, 2006 Share Posted November 23, 2006 OK need some advanced logic with checkboxes below is the general outline and how it needs to work.example code segment:<form XXXXXXXXXX>form # 222several input standard stuff><input xxxxxx><input yyyyyy>Now here is where the hard part enters into play.place a checkbox on this form screen and if the box is not checked just do a standard submit to the database.but if the checkbox has a value of "1" we need to keep all the data on the standard form and populate the database and then open up a new form with the standard data showing and the form number now would look like thisnew_form # 222-1 allowing for addational data to be entered.so simple terms1 If the box is Not checked just process the form inputs and form number to the database.2. If the box is checked than keep the form number and add a dash with a new number for the sub form i.e 222-13. process the new sub-form to the sub-form database with the addational added number.so lets see what falls out of the coding tree on this onetks.. Link to comment https://forums.phpfreaks.com/topic/28264-advanced-checkbox-logic/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.