I want the user to enter the data in text field,which will be created using html.When the user clicks on submit button,the page,whose url is mentoined int form tag will be loded.In that page,which will be in php, i want to diplay the email enterd by the user, what is the codefor this?The nvalues of the text fields are email and password respectively!
Share
It depends on the method that your form uses to submit the form. This can be GET or POST, and is set by the method attribute on your form.
For a GET request you can access the variables like this:
For a POST request you should use:
Do not forget to escape the input if you store it in a database, or escape the output if you display it to the users on your page!