我了解如何在开头包含数据库连接以及如何将此信息发送到数据库。
我的问题是检索编辑的信息,包括db中值为“array”的复选框(可能是一个单独的问题)
<html>
<body>
<form action="a php page" method="post">
<center>First Name:<input type="text" size="12" maxlength="12" name="FirstName"><br />
<center>Last Name:<input type="text" size="12" maxlength="12" name="LastName"><br />
<br/>
<br/>
<p>
How many Things?
<select name="Things">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<br/>
<br/>
</p>
<br/>
<center>Stuff<br />
Yes<input type="radio" value="Yes" name="Stuff"><br />
No<input type="radio" value="No" name="Stuff"></center>
<br />
<br />
Extras<br />
<center>
<input type="checkbox" name="Extras[]" value="E1" />Peppers<br />
<input type="checkbox" name="Extras[]" value="E2" />Onions<br />
<input type="checkbox" name="Extras[]" value="E3" />Lettuce<br />
</center>
<br/>
<br/>
Others?
<select name="Stuff">
<option value="That">That</option>
<option value="Third">Third</option>
</select>
</p>
<br/>
<input type="submit" name="formSubmit" value="Click to Submit Order" />
<center
</form>
<center> <the server">Click Here for Orders<center>
</body>
</html>
答案 0 :(得分:0)
发送信息SET
;从数据库获取信息是SELECT
,编辑数据库中的信息是UPDATE