I decided to use iframe to mimic the javscript like effect in showing input status in adding user. Iframe will show validation errors if not valid and success message. What I want is to refresh my parent page to clear input text when user submitted it successful at the same time showing my message. Is it possible? I ask mr.google about it and he disappoint me, perhaps I should ask it from guru here. Below are my codes.
<form action = "action.php" method= "post" enctype="multipart/form-data" target="result">
<p><label for="fname">First Name</label><input class = "placeholder" type="text" id="fname" name="fname"/></p>
<p><label for="lname">Last Name</label><input class = "placeholder" type="text" id="lname" name="lname" /></p>
<p><label for="gender">Gender</label><p class = "submit_left"><input type="submit" value="Submit" name="submit" /></p>
</form>
<div>
<iframe class = "result" name = "result" src="action.php" style="background-color: #dfdfdf"></iframe>
</div>
Any help would be so much appreciated.