hungvb

Send Php

Dec 18th, 2021 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <html>
  2. <body>
  3. <font  face="Courier New, Courier, monospace">
  4. <p><strong>Send Data</strong></p>
  5. <form name="frmdata" method="post">
  6.   <p>Name:  
  7.     &nbsp; &nbsp;&nbsp;&nbsp;
  8.     <input type="text" id="txtName" name="name">
  9.     <br>
  10.     Profession:
  11.   <input type="text" id="txtProfession" name="profession">
  12.   </p>
  13.   <p><br>
  14.     <input type="submit" id="btnSubmit" value="send">
  15.     </p>
  16. </form>
  17. </font>
  18. </body>
  19. </html>
  20.  
  21. <?php
  22.  
  23. if (isset($_POST["name"])) {
  24.   if  ($_POST["name"]!=''){
  25.       echo "Data was send"."<br/><br/>";
  26.       echo "Name:".$_POST["name"]."<br/>";
  27.       echo "Profession:".$_POST["profession"];
  28.   }
  29. }
  30.  
  31.  
  32. ?>
  33.  
Add Comment
Please, Sign In to add comment