I'm trying to find a way to obtain a subset array from the passed POST array in a php function. Right now my html form has one input into which a number is typed. Based on that value a number of checkboxes will appear after it. What would be the best way to obtain the array of checkbox values from the POST? I am submitting the form using AJAX and .serializeArray() for the form. Would it be best just to copy the array, trimming out the first entry, which is the first input value? So if the POST was: input=4 cb1=1 cb2=0 cb3=0 cb4=1, just create a separate array starting at index 1? If anyone has any ideas or opinions please let me know.
Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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:
The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)