When error_reporting(E_ALL);
is turned on I'm having the following example of notice
Notice: Undefined index: name in /home/user/public_html/directory/subdirectory/test.php on line 111
Notice: Undefined index: identity in /home/user/public_html/directory/subdirectory/test.php on line 116
in every form field if I want to save user inputted data in text fields using session
after the form is submitted by the users.
Example of my current code is as following:
GetSQLValueString($_POST['name'], "text"),
GetSQLValueString($_POST['identity'], "text")
<?php $_SESSION['form'] = $_POST; ?>
<form action="<?php echo $editFormAction; ?>" method="post" name="userform" id="userform">
<input name="name" type="text" id="name" value="<?= $_SESSION['form']['name']; ?>" size="25" />
<input name="identity" type="text" id="identity" value="<?= $_SESSION['form']['identity']; ?>" size="25" />
and so on.............
Any idea?