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, ∼2061🔥, 0💬
Popular Posts:
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...