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>

Comments »

The URI to TrackBack this entry is: http://moneyearner.blogsome.com/2008/09/16/add-category-code-on-our-project/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















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