|
Home >> FAQs/Tutorials >> PHP Script Tutorials and Tips >> Index
PHP Tutorials - Expected Input Field Not Submitted
By: FYICenter.com
(Continued from previous topic...)
What Happens If an Expected Input Field Was Not Submitted?
Obviously, if an expected input field was not submitted, there will be no entry in the $_REQUEST array
for that field. You may get an execution error, if you are not checking the existence of
the expected entries in $_REQUEST. For example, if you copy processing_forms.php to your
local Web server, and run your browser with http://localhost/processing_forms.php?name=Joe,
you will an error page like this:
You have submitted the following information:
Name = Joe
Comments =
Thank you!
PHP Notice: Undefined index:
comment in ...\processing_forms.php on line 3
(Continued on next topic...)
- How To Create a Web Form?
- What Are Form Input HTML Tags?
- How To Generate a Form?
- Where Is the Submitted Form Data Stored?
- How To Retrieve the Submitted Form Data?
- What Happens If an Expected Input Field Was Not Submitted?
- How To Avoid the Undefined Index Error?
- How To List All Values of Submitted Fields?
- What Are Input Values of SELECT Tags?
- How To Specify Input Values for Radio Buttons?
- How To Specify Input Values for Checkboxes?
- How To Retrieve Input Values for Checkboxes Properly?
- How To Supply Default Values for Text Fields?
- How To Remove Slashes on Submitted Input Values?
- How To Support Multiple Submit Buttons?
- How To Support Hidden Form Fields?
- How To Generate and Process a Form with the Same Script?
- How To Submit Values without Using a Form?
- How To Retrieve the Original Query String?
- How To Protect Special Characters in Query String?
- How To Support Multiple-Page Forms?
|