Answer the question
In order to leave comments, you need to log in
How to connect php and html?
How to make it read what is in the input, and how to make a variable or something, everything about this php is generally vague.<input type="number" value="" name="fact">
<?php
$fact = ["fact"];
?>
Answer the question
In order to leave comments, you need to log in
For example so.
example.php file:
<form method="POST">
<input type="number" value="123456789" name="fact">
<input type="submit">
</form>
<?php
$fact = isset($_POST["fact"]) ? $_POST["fact"] : '';
echo $fact;
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question