Tools, FAQ, Tutorials:
Listing All Values of Submitted Fields in PHP
How To List All Values of Submitted Fields in PHP?
✍: FYIcenter.com
If you want list all values of submitted fields, you can write a simple loop to retrieve all entries in the $_REQUEST array. Below is an improved version of processing_forms.php to list all submitted input values:
<?php print("<html><pre>"); $count = count($_REQUEST); print("Number of values: $count\n"); foreach ($_REQUEST as $key=>$value) { print(" $key = $value\n"); } print("</pre></html>\n"); ?>
If you test this with submit_comments.php on your Web server, you will get something like:
Number of values: 2 name = Fyi Center comment = Good job.
2016-11-15, 740👍, 0💬
Popular Posts:
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How To Connect to MySQL from a PHP Script in PHP? If you want access the MySQL server, you must crea...
Where to find tutorials on Using Azure API Management Publisher Dashboard? Here is a list of tutoria...
Why Do You Need to Filter Out Empty Files in PHP? When you are processing uploaded files, you need t...
How to add request body examples to my Azure API operation 2017 version to make it more user friendl...