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.
Â
⇒Processing Web Forms in PHP
⇒⇒PHP Tutorials
2016-11-15, 1075👍, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:date" Element? EPUB 2.0 Metadata "dc:date" is an optional metadata ele...
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...
How to View Atom Feeds with IE (Internet Explorer)? If you want to view Atom Feeds with IE (Internet...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...