oferg Posted September 20, 2012 Share Posted September 20, 2012 Hello, I have a form that has text inputs in it and checkbox near every text input. I want the form to insert the information from the inputs into my sql table but only if the checkbox near said input is checked. can I start an INSERT INTO function and condition it to insert only checked fields? (perhaps with a switch case?) Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/268598-insert-on-condition/ Share on other sites More sharing options...
ManiacDan Posted September 20, 2012 Share Posted September 20, 2012 Depends on how your form fields are named. Show an example of the checkbox and corresponding text box. Quote Link to comment https://forums.phpfreaks.com/topic/268598-insert-on-condition/#findComment-1379569 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.