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:
I have also added the following PHP code into the INSERT command:
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
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
Re: [gversion] Add Form - Checkbox field
By gversion - October 31, 2012
Hi,
After a bit more digging around, I have managed to resolve this by using the following post:
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/gforum.cgi?post=93090
Thanks,
Greg
After a bit more digging around, I have managed to resolve this by using the following post:
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/gforum.cgi?post=93090
Thanks,
Greg