Inserting from a form into a database


/ Published in: ColdFusion
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <cfquery datasource="turpinsshoutbox" username="root">
  2. INSERT INTO comment(poster, email, msg)
  3. VALUES ('#Form.poster#', '#Form.email#', '#Form.msg#')
  4. </cfquery>
  5. <cflocation url="shoutbox.cfm" addToken="No">

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.