0

How php get innerHTML value

Ex. ...<form method="post"> <h2>Hello world</h2> </form how get php "Hello world"?

12th Apr 2023, 9:00 AM
Chalacho
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/
12th Apr 2023, 9:25 AM
Yasin Rahnaward
Yasin Rahnaward - avatar
+ 3
https://code.sololearn.com/wvO8Dp1eoz4T/?ref=app
12th Apr 2023, 9:19 AM
Calviղ
Calviղ - avatar
0
Use js code how get email accounting from device
9th May 2023, 12:02 AM
Chalacho