Tools, FAQ, Tutorials:
Supporting Hidden Form Fields in PHP
How To Support Hidden Form Fields in PHP?
✍: FYIcenter.com
Hidden fields are special fields in a form that are not shown on the Web page. But when the form is submitted, values specified in the hidden fields are also submitted to the Web server. A hidden field can be specified with the <INPUT TYPE=HIDDEN ...> tag. The PHP script below shows you a good example:
<?php print("<html><form action=processing_forms.php method=post>"); print("<input type=hidden name=module value=FAQ>\n"); print("<table><tr><td colspan=2>Please enter and submit your" ." comments about FYICenter.com:</td></tr>"); print("<tr><td>Your Name:</td>" ."<td><input type=text name=name></td></tr>\n"); print("<tr><td>Comments:</td>" ."<td><input type=text name=comment size=40>" ."</td></tr>\n"); print("<tr><td colspan=2>" .'<input type=submit name=submit value="Submit">' ."<td></tr></table>\n"); print("</form></html>\n"); ?>
If you submit this form, you will get something like this:
Number of values: 4 module = FAQ name = Peter comment = Thanks for the good tips. submit = Submit
⇒ Generating and Processing Form with the Same Script in PHP
2016-11-08, ∼3015🔥, 0💬
Popular Posts:
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
Tools, FAQ, Tutorials: JSON Validator JSON-XML Converter XML-JSON Converter JSON FAQ/Tutorials Pytho...
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...
What is the Azure AD v1.0 OpenID Metadata Document? Azure AD v1.0 OpenID Metadata Document is an onl...