+ 1
How can I input something in php
..
2 ответов
+ 2
Make a form in html and use input fields.
<form action="" method="post">
<input name="Something"/>
<button name="submit" value="confirm"></button>
</form>
than in php:
<?php
if(isset($_POST['submit']))
{
$value = $_POST['Something'];
if($value ==0)
{
echo 'Please write something in the input field';
}
else
{
//Your code here...
}
} ?>
Hope this is usefull.
best regards.
0
echo, print