+ 1
How to use raw input in php?
A raw input means input from the user end.
8 odpowiedzi
+ 9
<?php
$x;
if(isset($_POST["value"])) {
$x = $_POST["value"];
}
echo "<form action='' method='post'><input name='value'></form>";
?>
+ 4
Not possible
+ 1
mean like post and get via html form
or something without reloading like ajax
+ 1
only using php
+ 1
for a website?
i need more context
+ 1
A raw input from the user end using php script only.
<?php
$x = raw input from user end.
//Using this value for your defined function.
myfunc ()
?>
+ 1
You can't get raw user input. You need HTML. The browser doesn't understand PHP.
0
i think the get form is possible in sololearn