# \[ASK\] Check if record exist in database before submit form project

**URL:** <https://discourse.cakephp.org/t/ask-check-if-record-exist-in-database-before-submit-form-project/3769>\
**Category:** Need Help\
**Created:** [January 17, 2018, 4:07am UTC](https://discourse.cakephp.org/t/ask-check-if-record-exist-in-database-before-submit-form-project/3769 "2018-01-17T04:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onlineibs](https://avatars.discourse-cdn.com/v4/letter/o/779978/32.png) [@onlineibs](https://discourse.cakephp.org/u/onlineibs)\
**Post date:** [January 17, 2018, 4:07am UTC](https://discourse.cakephp.org/t/ask-check-if-record-exist-in-database-before-submit-form-project/3769/1 "2018-01-17T04:07:00Z")

</div>

How to check record exist in database?  
when user click submit (form project), it must check 1 field in table database

> \<?php echo $this-\>Form-\>create() ?\>
> 
> \<?php echo $this-\>Form-\>input; ?\> 
> 
> if record not exist in field table biodata go to biodata else \<?php echo $this-\>Form-\>submit(\_\_l('Next'); ?\> 
> 
> \<?php echo $this-\>Form-\>end();?\>

what command can i use to Check if record exist in database?  
thank’s before
