-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),以便能够制作出一个良好的,结构良好的并且符合主题的问题。 –