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.
⇒ Input Values of SELECT Tags in PHP
2016-11-15, 1163👍, 0💬
Popular Posts:
How To Add Column Headers to a Table? If you want to add column headers to a table, you need to use ...
How to login to Azure API Management Publisher Portal 2017 version? If you have given access permiss...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...