Is it possible in PHP to get both the data and the input name when posting a form?
if i got a form
<input name="a_field" value="a value" />
<input name="b_field" value="b value" />
On the page the form points to I want to catch all $_POST vars to an array like
$fields['fieldname'] = 'a_field';
$fields['fieldvalue'] = 'a value';
.... and so on
I know how to add the values to an array, but if I don't know the field names, is it possible to get them?
as when u do
u get both the filename and the value.
Hope my question is clear, please tell me and I try explain harder
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.
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP. PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.
Then you just need to pass your date to the function.
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 how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…