First, let me ask you the question. Why you need to encode and decode form data.
1) When you are submitting form data to other PHP file using GET Request, form values will be displayed in the browser URL.
2) When you are submitting form data to other PHP file using POST Request, form values will be
viewed using Firebug in Firefox, Chrome Developer Tools in Chrome and IE Developer Tools.
3) If you are performing any credit card transactions in e-commerce site and submitting credit card details to the Payment gateway server using Form.
1) When you are submitting form data to other PHP file using GET Request, form values will be displayed in the browser URL.
2) When you are submitting form data to other PHP file using POST Request, form values will be
viewed using Firebug in Firefox, Chrome Developer Tools in Chrome and IE Developer Tools.
3) If you are performing any credit card transactions in e-commerce site and submitting credit card details to the Payment gateway server using Form.