can some one help with the coding on this for me please i have a template for a forum to add items to a database
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
</head>
<body>
$header
$navbar
<form action="add_serial.php" method="post" target="_self">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[Submit_Your_Serial]</td>
</tr>
</thead> <tr> <td width="97" valign="top">Programm Name:</td>
<td width="493"><input name="add_name" value="$app_name" type="text" id="add_name"></td>
</tr>
<tr>
<td valign="top">Serial:</td>
<td><textarea name="add_serial" cols="40" rows="5" id="add_serial">$add_serial</textarea></td>
</tr>
<tr>
<td valign="top"> </td>
<td>
<input type="submit" value="Submit"><input name="go" type="hidden" value="add"></td>
</tr>
</table></form>
$footer
</body>
</html>
i just need help with the phpscript to add data to the database
here is the tables for the database
PHP Code:
CREATE TABLE `serial` (
`serialid` int(10) NOT NULL auto_increment,
`serialname` varchar(255) NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`serialnumber` text NOT NULL,
PRIMARY KEY (`serialid`),
KEY `userid` (`userid`)
) TYPE=MyISAM;