Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • development
2 results

POST.php

Blame
  • POST.php 482 B
    <html>
    
    <head>
        <title>Ma première page PHP</title>
    </head>
    
    <body>
    
    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <input type="text" name="value"/>
        <input type="submit"/>
    </form>
    
        <?php 
        
        // print( implode($_GET)); 
    
            if (isset($_POST["value"])) {
            
            echo "Tu as écrit: ".$_POST["value"];  
            } else {
            echo "Il faut que tu renseigné un valeur!";
            }
        
        
        
        
        ?>
    
    </body>
    
    </html>