I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page .
The user enters the form and click submit, once he click submit the form is submitted and in the previous page(which is the main page) the enter form >> button is disabled.
What i have done is i took the value of the submit button from the form page and store in the database.
Then in the previous page(which is the main page), i did a if condition that if the value is submit, disable the enter form >> button...But i think i have some errors in it... it doesnt show any error, but the enter form >> button is not disabled...
Login page >> Main Page(which has the enter form > button) >> Form Page >>
My code is as
Where have i gone wrong...