I'm looking for an answer or perhabes an idea to solve this problem ..
i have a form to be filled and the code checks after submmiting if there's empty textbox's it'll print an error message, however when it returns to the form page all previous user entry will be gone and then he has to fill them all again .. which i believ is annoying !
how can i reserve the entry .. please i want i short solution bcause i have so many forms with so many fildes .
You can check my work so far :
this is to check in the formExcution.php
if( $jobn==""||$jobc==""||$salaryn==""||$salaryc==""||$transportn||$transportc==""||$residencen ==""||$residencec==""||$benifitn==""||$benifitc==""||$packagen=="")
{
header("location: editsalaryform.php?msg=empty");
exit();
}
and here in the form page where the message will shown:
<?php
if(isset($_GET['msg'])){
print "<h4 style='color:#700000;'> you have to fill all the fildes </h4>";}
?>
Thank you ,