I am fairly new to php so I'm not sure how to word this question. I am building a clearance form for our hr department which involves around 13 departments. I have written most of the code; however, I am having problems with the approval page. I have multiple forms each named differently with different submit buttons. Only one form per department is displayed based on the approver's department code. After the form is validated and submitted, the user should be redirected to thankyou.html page. This does not happens and the form disappears but the page remains. Any advice. The code for each form is basically the same. The code for one of the forms is below:
if($formfailure == 4)
{
print '<div style="text-align:center;font-size:15px;color:#CC0000;font-weight:bolder">You have left a field blank or you have submitted a reject without a rejection comment.</br>'.$errorLeave.'</div>';
}
elseif($formfailure == 5)
{
print '<div style="text-align:center;font-size:15px;color:#CC0000;font-weight:bolder">You have left a field blank or you have submitted a reject without a rejection comment.</br>'.$Leaveerror.'</div>';
}
}
}
Bookmarks