php变量和表单方法POST

时间:2014-11-09 13:37:52

标签: php html



<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="CSS/stile.css">

<title>ControlPanel</title>
</head>

<body>
<br>
<div class="titlebarpesiti" style="background-color:#22AEB9">
CONTROLLO SITO
</div>
<br>
<br>
<div class="titlebarpesiti" style="background-color:#22AEB9">
INSERISCI NUOVA FESTA
</div>
<div class="titlebarpesiti">
<form id="richiesta dati" name="richiesta dati" method="POST" action="PHP/Scrittura_dati.php">

<label for="festa">Festa: (NIKITA*NOMEEVENTO) &nbsp;</label><input type="text" name="festa"> <br> <br>
<label for="data">Data: (4 ottobre) &nbsp;</label><input type="text" name="data"><br> <br> 
<label for="luogo">Luogo: (Nikita) &nbsp;</label><input type="text" name="luogo"><br> <br>
<label for="prezzo">Prezzo:(12€) &nbsp;</label><input type="text" name="prezzo"><br> <br>
<label for="organizzatori">FotoNome: (NIKITANOMEEVENTO) &nbsp;</label><input type="text" name="organizzatore"><br> <br>
<label for="linkevento">LinkEvento: (www..) &nbsp;</label><input type="text" name="linkevento"><br> <br>
<label for="numeriPR">PR: (333..) &nbsp;</label><input type="text" name="numeriPR"><br> <br>

<input type="submit" value="Invia Dati"><br> </br>
</form>
</div>

<br>
<div class="titlebarpesiti" style="background-color:#22AEB9">
MODIFICA FESTA
</div>
<div class="titlebarpesiti">
<form id="aggiornamento dati" name="aggiornamento dati" method="POST" action="PHP/Aggiorn_Dati.php">
<label for="ID">INSERISCI ID FESTA &nbsp;</label><input type="text" name="ID"><br> <br>
<label for="festa">Festa: &nbsp;</label><input type="text" name="festa"> <br> <br>
<label for="data">Data: &nbsp;</label><input type="text" name="data"><br> <br> 
<label for="luogo">Luogo: &nbsp;</label><input type="text" name="luogo"><br> <br>
<label for="prezzo">Prezzo: &nbsp;</label><input type="text" name="prezzo"><br> <br>
<label for="organizzatori">Foto: &nbsp;</label><input type="text" name="organizzatore"><br> <br>
<label for="linkevento">LinkEvento: (www..) &nbsp;</label><input type="text" name="linkevento"><br> <br>
<label for="numeriPR">PR: (333..) &nbsp;</label><input type="text" name="listapr"><br> <br>

<input type="submit" value="Invia Dati"><br> </br>


</form>
</div>


<br>

<form>

<br>


<div class="titlebarpesiti" style="background-color:#FF0004">
ELIMINARE DATI
<form id="eliminare dati" name="eliminare dati" method="POST" action="PHP/eliminaredati.php">
<input type="text" name="ideliminare">
<input type="submit" value="INVIO"><br> <br>
</form>
</div>


<br>
<div class="titlebarpesiti" style="background-color:#FF0004">
CONTROLLO DB
<form id="controllo DB" name="controllodb" method="POST" action="controllodb.php">
<input type="submit" value="VAI"><br> <br>
</form>
</div>
<br>

<br>
<div class="titlebarpesiti" style="background-color:#FF0004">
PASSED
<form id="idpassed" name="idpassed" method="POST" action="PHP/passed.php">
<input type="text" name="idpassed"> ID
<input type="text" name="value"> VALORE
<input type="submit" value="VAI"><br> </br>
</form>
</div>
<br>

<br>
<div class="titlebarpesiti" style="background-color:#FF0004">
FESTEINHOME
<form id="idpassed" name="idpassed" method="POST" action="PHP/value.php">
<input type="text" name="idpassed"> ID
<input type="text" name="value"> VALORE
<input type="submit" value="VAI"><br> </br>
</form>
</div>
<br>



</body>
</html>
&#13;
&#13;
&#13;

大家好,我有这个代码,但我有一个问题: 我的所有表格都正确运行,但形式&#34; eliminaredati&#34; doesen没有工作,它打开了文件eliminaredati.php,它让我想起了我的www.site.org/form.php?ideliminare=(mynumber) 为什么它干嘛工作?请帮帮我

1 个答案:

答案 0 :(得分:1)

因为您在<form>之前有额外的开放<div class="titlebarpesiti" style="background-color:#FF0004">标记。

请将其删除并尝试。