Money Earner

September 16, 2008

Add Category Code on our Project

Filed under: Code

Using CFM tags

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<cfif IsDefined(’FORM.submit’)>
<cfquery  datasource="webfillers">
INSERT TB_PROD_CATEGORIES(CATEGORY, DESCRIPTIONS)
VALUES(’#FORM.category#’, ‘#FORM.descriptions#’)
</cfquery>
<cfoutput>#FORM.category# Has Been Successfully Added….</cfoutput>
</cfif>

<form name = "addcategory" method="post" action="">
  <table width="47%" height="" border="1">
    <tr>
      <td width="45%">Category</td>
      <td width="52%"><input name="category" type="text"></td>
    </tr>
    <tr>
      <td>Description</td>
      <td><input name="descriptions" type="text"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="submit" type="submit" value="Submit"></td>
    </tr>
  </table>
</form>
</body>
</html>






















Get free blog up and running in minutes with Blogsome
Theme designed by Helga Cleve