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, 1570🔥, 0💬
Popular Posts:
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials ...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....