-4
我有,我要創建一個形式了許多問題。需要幫助的遊戲,PHP的形式和mysql
<form method="post" action="target.php" id="myForm">
<span class="form_col">Name</span>
<input />
<br /><br />
<span class="form_col">Gender :</span>
<label><input name="sex" type="radio" value="H" />Male</label>
<label><input name="sex" type="radio" value="F" />Female</label>
<br /><br />
<label class="form_col">Race :</label>
<label><input type="radio" value="Human" />Human</label>
<label><input type="radio" value="Elf" />Elf</label>
<label><input type="radio" value="Orc" />Orc</label>
<br /><br />
<label class="form_col">Primary color :</label>
<select name="prcolor" id="prcolor">
<option value="none">Select the primary color</option>
<option value="blue">Blue</option>
<option value="red">Red</option>
<option value="yellow">Yellow</option>
<option value="black">Black</option>
</select>
<br /><br />
<label class="form_col" for="firstName">Body color :</label>
<select name="bcolor" id="bcolor">
<option value="base">Base</option>
<option value="redb">Red</option>
<option value="brownb">Brown</option>
<option value="blackb">Black</option>
</select>
<br /><br />
<label class="form_col">Hair color :</label>
<select name="hair" id="hair">
<option value="none">Select the color</option>
<option value="blackh">Black</option>
<option value="greyh">Grey</option>
<option value="brownh">Brown</option>
</select>
<br /><br />
<span class="form_col">Weapon :</span>
<label><input type="radio" value="sword" />Sword</label>
<label><input type="radio" value="shield" />Shield</label>
<label><input type="radio" value="knife" />Knife</label>
<label><input type="radio" value="wand" />Wand</label>
<br /><br />
<span class="form_col">Clothes :</span>
<label><input type="checkbox" value="armor" />Armor</label>
<label><input type="checkbox" value="coat" />coat</label>
<label><input type="checkbox" value="dress" />Dress</label>
<br /><br />
<span class="form_col">Accessory :</span>
<label><input type="checkbox" value="hat" />Hat</label>
<label><input type="checkbox" value="helmet" />Helmet</label>
<label><input type="checkbox" value="glasses" />Glasses</label>
<br /><br />
<span class="form_col">Pet :</span>
<label><input name="sex" type="radio" value="mount" />Mount</label>
<label><input name="sex" type="radio" value="pet" />Pet</label>
<label><input name="sex" type="radio" value="none" />None</label>
<br /><br />
<span class="form_col"></span>
<input type="submit" value="Send" />
</form>
我需要將這些信息發送到數據庫,但我不知道如何做... 而在MySQL上,我不知道哪種類型,我需要使用每個信息...
任何人都可以幫助我使這種形式功能? 其實我真的不知道該怎麼做,我做了一些研究,但沒有結果..
在此先感謝
谷歌的PHP MySQL的PDO插入 – Ghost
嘗試學習PHP。得到一本好書。 –
有關下一個問題,請轉到[幫助部分](http://stackoverflow.com/help),然後閱讀[我應該避免詢問什麼類型的問題?](http://stackoverflow.com/help/on -topic)和[如何在StackOverflow上提出問題](http://stackoverflow.com/help/how-to-ask),以便能夠製作出一個良好的,結構良好的並且符合主題的問題。 –