php REQUEST练习

 1 <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
 2 Name: <input type="text" name="fname">
 3 <input type="submit">
 4 </form>
 5 
 6 <?php
 7 if (isset($_REQUEST['fname'])){
 8     $name = $_REQUEST['fname'];
 9     echo $name;    
10 }
11 
12 
13 ?>

 

posted @ 2022-04-23 22:34  paoPaoLong_liu  阅读(26)  评论(0)    收藏  举报