menus.php
<?php
$con=mysqli_connect("localhost","root","","mmogezgini");
$menuler = mysqli_query($con,"SELECT * FROM menuler");
while($menu = mysqli_fetch_array($menuler)) {
$isim = $menu["isim"];
$url = $menu["url"];
?>
<form method="post">
Menü İsmi :<input name="menu_isim" value="<?php echo $isim; ?>" disabled> |
Menü URL : <input name="menu_url" value="<?php echo $url;?>"disabled>
<button type="submit" formmethod="post" formaction="menu_duzenle.php">Düzenle</button>
<button formaction="menu_sil.php">Sil</button>
</form>
<br>
<?php
}
?>
edit_menu.php
<form method="post" action="menu_duzenle_islem.php">
Şuanki İsim : <input name="menu_isim" value="<?php echo $_POST['menu_isim'] ?>"disabled>
Yeni İsim : <input name="yeni_menu_isim" placeholder="yeni menü ismini giriniz.">
</form>
我的問題是形式menus.php不會發送給$_POST['menu_isim']
* edit_menu .php *。需要了解更多詳情
edit_menu.php = menu_duzenle.php –
您尚未在該輸入中指定類型。 'type =「text」' – diggersworld
你在menu.php腳本中沒有'action'屬性的形式,你需要將它設置爲'edit_menus.php' –