我設計了我的接口來提交數據到我的數據庫表,但我不確定如何去做這個這裏是我的一些代碼大部分是一樣的,所以一旦我知道如何要做到這一點,我可以複製它。WordPress提交數據到我的sql
<form method="post" action="input.php">
<?php wp_nonce_field('update-options'); ?>
<table width="600">
<tr valign="top>">
<th width="92" scope="row">Enter New Track</th>
<th width="92" scope="row">Enter New Position</th>
<th width="92" scope="row">Enter New Driver</th>
<th width="92" scope="row">Enter New Class</th>
</tr>
<tr valign="top>">
<td><input type="text" name="track" /></td>
<td><input type="text" name="position" /></td>
<td><input type="text" name="driver" /></td>
<td><input type="text" name="class" /></td>
</tr>
<tr valign="top">
<td><input type="submit" value="Submit" /></td>
<td><input type="submit" value="Submit" /></td>
<td><input type="submit" value="Submit" /></td>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
我想要做的就是輸入每個上有自己的這些值有表我都瞪大眼睛的問題,並沒有發現任何東西,這是任何幫助任何想法是值得讚賞的。
爲什麼你有多個'submit'' '標籤? – Matt 2012-07-31 17:24:30
由於每個輸入都不需要填寫,但我只想一次發送一個,並且他們都會轉到不同的表 – bobthemac 2012-07-31 17:28:38
好的,這不是必需的,因爲任何單個'submit'輸入都會提交表單,發送*全部*從表單輸入數據到處理腳本。 – Matt 2012-07-31 17:32:59