close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

voucher system to check if same code used before

Thread began 5/21/2012 10:30 am by Christopher West | Last modified 5/24/2012 11:47 am by Christopher West | 3139 views | 19 replies

Jason ByrnesWebAssist

create a recordset that queries the coupon table for the entered coupon, and checks that the VoucherStatus is = to 0.

one of the variables created by the recordset will be the total rows returned:
$totalRows_recordsetName

where recordsetName is the name of the recordset.

in the server validation behavior, you can use numeric validation to make sure the recordset is empty. Select numeric validation, and enter:
$totalRows_recordsetName

for the server variable. Set the minimum to -1 and the maximum to 0


this will pass validation only of the recordset ins empty.


It sounds like you are using Paypal standard. With paypal standard, you should be using an IPN page to update order information on a successful transaction. the update for the coupon status should happen on the IPN page.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...