0
How php get innerHTML value
Ex. ...<form method="post"> <h2>Hello world</h2> </form how get php "Hello world"?
3 Respostas
+ 5
Chalacho
h2 is not for getting data form user and send it to backend, instead you can use from inputs and change its type to your relevant user data (text, number, date,email,...).
In .html creat your form:
<form action="my.php" method="post">
Message : <input type="text" name="msg">
<input type="submit">
</form>
in my.php file:
you acces the message through global $_POST Variable
<?php echo $_POST["msg"]; ?>
then input value in your form will print to the screen.
how to setup php:
https://www.freecodecamp.org/news/how-to-get-started-with-php/
+ 3
https://code.sololearn.com/wvO8Dp1eoz4T/?ref=app
0
Use js code how get email accounting from device