html

Hugo Forms PHP

Wanna add some simple forms and process the Content with PHP ? Create Script cat << 'EOF' > static/welcome.php <html> <body> Welcome <?php echo $_POST["name"]; ?><br> Your email address is: <?php echo $_POST["email"]; ?> </body> </html> EOF Post { {< rawhtml >} } <form action="/welcome.php" method="post"> Name: <input type="text" name="name"><br> E-mail: <input type="text" name="email"><br> <input type="submit"> </form> { {< /rawhtml >} } Example Name: E-mail: sha256: 5b73134398129eadc6ca2b6661d2ef98cedc91548cae817c1c5cefb0a7fc71ff