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, ∼2326🔥, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 2.0 Metadata "dc:publisher" ...
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...