phphtmlinputviewstate

Is a system like __VIEWSTATE available in HTML or PHP?


Do you know ASP.NET __VIEWSTATE?

I want this in HTML or PHP:

input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="rdpm2JpiCj9+fuJ3FxZWXJNbHGkKghSSpG2aP70jGZpg2yNWOTPEc/7ML2WtlQHqChONJjMQrNWoaCGsO7qaULq8ibaXY45hVmHwoEh8xkxqEaDBtkIY0OPmLMmhiWx6caDRAo4f8UF1HFiKof/S8MLzci7DXDqsmJ4/RusMwpXrFXLYRzNyvrLVpUOuWdioNww4UfyrXaGfZl81pbPc0l5jTxdLQaQpGNy5cwacbsAdR9LFANoNaOveR/+Oh4VmTNR8GlohrkrDdulndNKjRZQQgf2Ek77mK8b9W1SRLGv2BAdl1rM51XpzgwFs944y0MTlxyX8lYwnlhabBervN2gIktutJpi72MGdNXFiea9oVOXhZdezV62axgr+gtB+LnB8fKAQ/XRTcQYEyzdN2mijrBsHa9aL5dbprj9tdv3fmrBRkK2nL0QoSPjDwxsr7RDIOsuGHd5hdZNpZIntaMDk27yGof/m9hp4qjiXRvx1rPo0PHdyQxWa8EKG14LarynoZxEDrYPP0yWl/xDl> </input>

Solution

  • Do you know Asp.NET __VIEWSTATE?

    Yes. View state is a feature of ASP.NET which is used to store the state of a form across requests. The article Understanding ASP.NET View State will explain this in more detail.

    View state does not "prevent the input values from being changed [or] the page source to be displayed". This is a misunderstanding on your part.

    Is a system like __VIEWSTATE available in html or php?

    Not directly. HTML and PHP do not natively include any form handling features, so this functionality does not exist in them. However, some PHP frameworks may include similar features.