Here is my form declaration
<form enctype="text/plain" method="post" action="PI_Application_Submission.php">
Here is my input:
<tr><td>Requested User Name<font color="red">*</font></td> <td><input type="text" name="user_name" size="35"></td></tr>
Here is my php line…
echo $_POST['user_name'];
I know how to check with the isset function and this is not just a warning. For some reason the value of user_name just does not get passed. What am I doing wrong?
My error message is as follows:
Notice: Undefined index: use in /var/www/html/PI_Application_Submission.php on line 6
Try to removing
enctypeform attribute.Basically PHP does not parse POST when your enctype different from
application/x-www-form-urlencodedormultipart/form-data.You can access to raw post data with
file_get_contents('php://input')