Powered By Blogger

Friday, 7 January 2011

Accessing form variables


Extraction of the values entered by the end user on the web form depends all upon the php version being used and php.ini configuration file.
Depending upon your PHP version and setup we can access each form field data via variables in three different ways
                                     1. $fieldname                             (security issue)
                                     2.$_POST[‘fieldname’]              (recommended)
                                     3.$HTTP_POST_VARS[‘fieldname’] ( can be disabled by register_long_arrays configuration directive which in results improves performance)

No comments:

Post a Comment