Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
HTML
<div class="portlet-body">
		Please read this statement carefully before proceed to submit the assessment.
		<ol type="1">
		<li style="padding-bottom:10px;">
		Supervisor 2 is responsible for review of the Supervisor 1 comments and provides final rating for the overall employee performance under his/her supervision and proceed to submit the form.</li>
		</ol></p><input type="checkbox" class="form-control-input" id="statement" name="statement" value="statement" required /> I have read and understand all the above statement.</p>
</div>


What I have tried:

I want to create a checkbox button without send the value into database. The checkbox have to checked before submit the form. Is it possible?
Posted
Updated 27-Jul-22 16:30pm
v2
Comments
Richard Deeming 28-Jul-22 4:52am    
Yes, it is perfectly possible to add a required field to your form without inserting it into the database.

Since you haven't shown any of your code for inserting the form values into the database, nor explained what problem you're having with that code, we can't give you any specific advice on how to fix that code.
Zatil Syamimi 1-Aug-22 22:45pm    
Can you give a simple example for insert form values which consists of this required checkbox statement before submitting form.
Richard Deeming 2-Aug-22 3:36am    
You already have one, in your question. There's nothing in the code you've shown that will insert the required checkbox value in your database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900