php fonksiyon gösteren

0 Cevap

i have a php code here and wondering how can this display what you have wrote in the box: i did this and it did display this one: "$input"; ?> "

 <html>
 <head></head>
 <body>
 <form action="message.php" method="post">
 Enter your message: <input type="text" name="msg" size="30">
 <input type="submit" value="Send">
 </form>
 </body>
 </html> 

=============== this is my message.php

   <html>
   <head></head>
   <body>

     <?php
     // retrieve form data
     $input = $_POST['msg'];
      // use it
     echo "You said: <i>$input</i>";
     ?>

    </body>
    </html> 

=======

Bu i görünüm sayfası kaynağı olarak elde budur:

        <html>
        <head></head>
         <body>

          <?php
           // retrieve form data
          $input = $_POST['msg'];
        // use it
         echo "You said: <i>$input</i>";
            ?>

            </body>
             </html> 

0 Cevap