+ 3

Plz tell me how to receive data from user?

21st Jun 2016, 9:48 AM
Priyanshu Jaat
9 Answers
+ 6
you can either use form or jquery with ajax.
21st Jun 2016, 10:51 PM
tanveer ahmed
tanveer ahmed - avatar
+ 2
to receive data from a form in the form tag add action="myFile.php" and method="post" then give each input a name attribute e.g. <input type="text" name="input1" then access $_POST ["NameAttributeValue"] to retrieve the value. e.g. <form action"" method "post"> <input type="text" name="in"/> <submit>submit</submit> </form> <?php $myvar = $_POST["in"];
24th Jun 2016, 3:55 PM
josh mizzi
josh mizzi - avatar
+ 1
What data do you want to receive? The standalone way is using forms. It is discussed in the course.
21st Jun 2016, 12:01 PM
James Flanders
+ 1
you can easily add form and input tag to collect data from the user and set your destination storage where you want to keep the got data. Thanks.
7th Oct 2020, 3:54 PM
Jahangir Alom Minto
Jahangir Alom Minto - avatar
0
Ya from the forms. I wll study that.Tell me where will i save it. Plz help...
21st Jun 2016, 12:33 PM
Priyanshu Jaat
0
$_POST or $_GET depending on the method you used for the form the user submits
25th Jun 2016, 8:12 PM
Kaleb Klein
Kaleb Klein - avatar
0
you need a form definitely. you should take the html course right here on sololearn if you haven't.
14th Feb 2017, 11:37 AM
Muyiwa Ogundare
Muyiwa Ogundare - avatar
- 1
Grgr
29th Jun 2016, 5:23 PM
‫אריאל חסין‬‎
‫אריאל חסין‬‎ - avatar
- 1
Html forms
12th Jul 2016, 10:49 AM
Mohimi Othmane
Mohimi Othmane - avatar