-1

我了解如何在开始时包含数据库连接以及如何将此信息发送到数据库。

我的问题是检索编辑信息,包括数据库中值为“数组”的复选框。(可能是一个单独的问题)

 <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>
4

1 回答 1

0

发送信息 SET;从数据库中获取信息是SELECT,编辑数据库中的信息是UPDATE

于 2012-05-17T20:32:42.867 回答