Answers for "self submit a php form"

PHP
0

php self submit

<?php if (!empty($_POST)): ?>
    Welcome, <?php echo htmlspecialchars($_POST["name"]); ?>!<br>
    Your email is <?php echo htmlspecialchars($_POST["email"]); ?>.<br>
<?php else: ?>
    <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
        Name: <input type="text" name="name"><br>
        Email: <input type="text" name="email"><br>
        <input type="submit">
    </form>
<?php endif; ?>
Posted by: Guest on February-08-2021
0

self submit form php

action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language