# Coupon Code Enter Get Instant Result

**URL:** <https://forum.kirupa.com/t/coupon-code-enter-get-instant-result/326527>\
**Category:** programming\
**Created:** [December 20, 2011, 10:51pm UTC](https://forum.kirupa.com/t/coupon-code-enter-get-instant-result/326527 "2011-12-20T22:51:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vanss472](https://avatars.discourse-cdn.com/v4/letter/v/c77e96/32.png) [@Vanss472](https://forum.kirupa.com/u/Vanss472)\
**Post date:** [December 20, 2011, 10:51pm UTC](https://forum.kirupa.com/t/coupon-code-enter-get-instant-result/326527/1 "2011-12-20T22:51:20Z")

</div>

Hello

My MySQL database will have coupon codes in it. When someone visit my website they will enter a coupon code(that is register already on my database), I want to use Ajax to give them an answer straight away if there coupon is valid or not and then is it valid jump the user to a webpage… Does anyone have an example of something similar to this? I know how to create tables in the database but don’t know how to validate the coupon code. 😉

Thanks  
:stare:
