I have a form called form3 with the following input boxes:
I need to be able to update records in a mysql database based on SELECTED id values with new status values selected in the status boxes
Each of the boxes is a dropdown feeding off a database of orders and refering to ID of orders and current status
What I am trying to do is to select an id value in each of the boxes and the submit the new status value to the database by using some sort of loop.
I need the php loop to look at the value of id1 and submit the new status1 value of id1 to the database, then the same for id2 / status2 etc
The problem is that I am not so familiar with php loops and would really appreciate some help here
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: