“Self Submit Form Formulário PHP” Respostas de código

Servidor PHP self

<form action="<?php echo $_SERVER['PHP_SELF']; ?>"> 
//there is no reason to use this to submit form data to the same page
<form action=""> 
//will do the same thing
Ramsey1120

Formulário de post php para si mesmo

// Here is how to post form data to self or to the same page & 
// avoid the PHP_SELF exploits at the same time.
<form name="my_form" method="post"
  action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>"> 
</form>
Geeky Bravo

PHP auto -enviado

<?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; ?>
Tamer Jarrar

Self Submit Form Formulário PHP

action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"
Tamer Jarrar

Respostas semelhantes a “Self Submit Form Formulário PHP”

Perguntas semelhantes a “Self Submit Form Formulário PHP”

Mais respostas relacionadas para “Self Submit Form Formulário PHP” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código