If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

. Could someone please explain me why is this line necessary(what does it actually do)? Because I found on Google that hidden is used only when you submit some information(not visible to the user) in addition to what the user types, and I am not sending such additional information.

I've used a hidden input for the isset statement in PhP when I had different forms with different inputs that all submitted to the same page. That way they could all use the same isset statement. But it can be used the other way too, so that you could distinguish between different pages that all use the same basic form. And it may get it's value from some javascript code somewhere else on the page.