Add Form - Checkbox field

2 posts by 1 authors in: Forums > CMS Builder
Last Post: October 31, 2012   (RSS)

By gversion - October 31, 2012

Hello,

I am trying to add a checkbox to the AddForm.php template.

I have added the following HTML code:

<input type="checkbox" name="urgent" value="<?php echo htmlspecialchars(@$_REQUEST['urgent']) ?>" />

I have also added the following PHP code into the INSERT command:
urgent = '" .mysql_escape( @$_REQUEST['urgent'] ). "',


The form is submitting with no errors but the data is not being saved when I view it in the cmsAdmin area.

Can someone please suggest why this may not be working?

Thank you,
Greg