xxxxrobxxxx
10-26-2004, 03:44 PM
I need help making a poll... What I have so far is..
<table ID="poll" width="125" cellpadding="2" cellspacing="0" border="0">
<tr align="center" valign="top">
<td align="left" colspan="1" rowspan="1">
<h5>Select your favorite clan tag.</h5>
<form method="POST" action="pollresults.php">
<dl>
<dt><input type="radio" name="check[]" value="tag1">-(JG)-<br>
<dt><input type="radio" name="check[]" value="tag2">=jG=<br>
<dt><input type="radio" name="check[]" value="tag3">/jG/<br>
<dt><input type="radio" name="check[]" value="tag4">-xXJgXx-<br>
<dt><input type="radio" name="check[]" value="tag5">.::jG::.<br>
<dt><input type="radio" name="check[]" value="tag6">-=jG=-<br>
<dt><input type="radio" name="check[]" value="tag8">-->jG<--<br>
<dt><input type="radio" name="check[]" value="tag9">[jG]<br>
<dt><input type="radio" name="check[]" value="tag10"><(JG)><br>
</dl>
<input type="submit" name="submit" value="Vote!"><input type="reset">
</form>
</td></tr></table>
and the database is..
CREATE TABLE poll (
id mediumint(9) NOT NULL auto_increment,
tag varchar(11) NOT NULL default '',
IP varchar(20) NOT NULL default '',
KEY ID (id)
) TYPE=MYISAM;
All I want is for it to insert into the database when you hit submit the option the user choose. Please help me!!!
<table ID="poll" width="125" cellpadding="2" cellspacing="0" border="0">
<tr align="center" valign="top">
<td align="left" colspan="1" rowspan="1">
<h5>Select your favorite clan tag.</h5>
<form method="POST" action="pollresults.php">
<dl>
<dt><input type="radio" name="check[]" value="tag1">-(JG)-<br>
<dt><input type="radio" name="check[]" value="tag2">=jG=<br>
<dt><input type="radio" name="check[]" value="tag3">/jG/<br>
<dt><input type="radio" name="check[]" value="tag4">-xXJgXx-<br>
<dt><input type="radio" name="check[]" value="tag5">.::jG::.<br>
<dt><input type="radio" name="check[]" value="tag6">-=jG=-<br>
<dt><input type="radio" name="check[]" value="tag8">-->jG<--<br>
<dt><input type="radio" name="check[]" value="tag9">[jG]<br>
<dt><input type="radio" name="check[]" value="tag10"><(JG)><br>
</dl>
<input type="submit" name="submit" value="Vote!"><input type="reset">
</form>
</td></tr></table>
and the database is..
CREATE TABLE poll (
id mediumint(9) NOT NULL auto_increment,
tag varchar(11) NOT NULL default '',
IP varchar(20) NOT NULL default '',
KEY ID (id)
) TYPE=MYISAM;
All I want is for it to insert into the database when you hit submit the option the user choose. Please help me!!!
