當前位置:首頁 » 編程語言 » php表單自動提交

php表單自動提交

發布時間: 2025-03-07 08:56:09

㈠ 怎麼在php 使用post表單提交

<formaction="url.php"method="post">
<p><inputtype="text"name="username"value=""></p>
<p><inputtype="submit"name="submit"value="提交"></p>
</form>

㈡ php表單怎樣提交到當前頁面,並用$_POST獲取其值

<?php
$username=$_POST['username'];

?>

<form action="" ><input type="text" name="username"><input type="submit" name="submit" value="提交"></form>

form的action屬性留空的話就直接提交到當前頁面了 後台直接$_POST獲取前台傳過來的表單域啊

熱點內容
scratch少兒編程課程 發布:2025-04-16 17:11:44 瀏覽:642
榮耀x10從哪裡設置密碼 發布:2025-04-16 17:11:43 瀏覽:368
java從入門到精通視頻 發布:2025-04-16 17:11:43 瀏覽:89
php微信介面教程 發布:2025-04-16 17:07:30 瀏覽:311
android實現陰影 發布:2025-04-16 16:50:08 瀏覽:794
粉筆直播課緩存 發布:2025-04-16 16:31:21 瀏覽:346
機頂盒都有什麼配置 發布:2025-04-16 16:24:37 瀏覽:213
編寫手游反編譯都需要學習什麼 發布:2025-04-16 16:19:36 瀏覽:818
proteus編譯文件位置 發布:2025-04-16 16:18:44 瀏覽:368
土壓縮的本質 發布:2025-04-16 16:13:21 瀏覽:594