+ 3
Plz tell me how to receive data from user?
9 Answers
+ 6
you can either use form or jquery with ajax.
+ 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"];
+ 1
What data do you want to receive? The standalone way is using forms. It is discussed in the course.
+ 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.
0
Ya from the forms. I wll study that.Tell me where will i save it.
Plz help...
0
$_POST or $_GET depending on the method you used for the form the user submits
0
you need a form definitely. you should take the html course right here on sololearn if you haven't.
- 1
Grgr
- 1
Html forms