+ 1
How to colect data from forms.
2 Answers
0
if you passed data through GET METHOD you can get the data $_GET['NAME_OF_INPUT'] else if METHOD IS POST $_POST['NAME_OF_INPUT']
- 1
1st step create a name tag in input field
e.g <input type="text" name="username" />
2nd step create an attribute method="POST" or method ="GET" in form element
3rd step create an attribute action="action.php" in form element
4th step declare a variable in action.php to store value $_POST["username"] and insert to database