I'm hoping someone can point out the obvious to me, as I'm baffled at this point. I have a form with the action=''. I have four submit buttons, two at the bottom of the form which run sql statements inserting or updating the database depending on the the DB index. The other two submit buttons, at the top of the form name='Edit' and 'Switch', which are used to change display values to input values. The first of the two submit buttons (Edit) works fine, the second submit (Switch) requires the user to click twice before the action happens (taking the row with the checked box and moving the textbox from one column to the other).
Can someone look and see what I'm overlooking in my code? I've tried moving my validation around, removing my else statements and just running the if's...thinking maybe it's a nesting issue. I've moved the php from after the form to before the form. And of course, I've checked the if(isset[])) by echoing out the value of the buttons, as well as, the values within the form. I've read some other posts and none of the resolves in those worked to fix my issue.
Any help or feedback at this point would be greatly appreciated, as I feel like an ID10T right now :queasy:
I've attached the code (.txt and a screenshot of the page .png) so you can see it all, with the exception of the DB connection and the header and css.