+ 1

How to colect data from forms.

10th Oct 2017, 4:01 PM
Nicolae Ionescu
Nicolae Ionescu - avatar
2 odpowiedzi
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']
10th Oct 2017, 4:18 PM
John Durask
John Durask - avatar
- 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
11th Oct 2017, 6:12 AM
林偉雄
林偉雄 - avatar