Hi,
I have the following form and display page.
<body>
<form action="after.php" method="post" name="testform" id="testform" enctype="multipart/form-data">
<input type="text" name="uname" size="25" maxlength="25">
<input type="submit" name="submit" value="submit">
</form>
</body>
<body>
<?php
if(empty($uname))
{
die("No Name submitted");
}
else
{
echo $uname;
}
?>
</body>
What I get is either 'No Name submitted' or 'Notice: Undefined variable: uname in d:....' when no IF statement. For now, all I want to do is display whatever from the form.
Please send this apprentice to the PHP world.