Numbered Coupon Generation

  • Thread starter Thread starter John Robert
  • Start date Start date
J

John Robert

Is there a simple way to generate a coupon where the number on the coupon is
incremented each time a user fills in their name and has the coupon emailed
to their mailbox? I'd like to have the visitor register with some brief
info (say name, company name, phone, email), the coupon has a number
assigned to it and then is emailed to themselves.

Thanks for any advice and help
 
You would have to use a custom written server-side script written in whatever scripting language is
support by your host, but store the info in a database. You can send an email coupon as part of a
text or HTML email, but if you want to actually attach a file this will requires additional coding
to create a file, then attach the file to the email, might be better display the coupon on web page
and then have the user print it.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Hi John,

That part is simple; what is hard is persisting the coupon number so that it can be identified as a valid coupon for that visitor
and whether or not it has been used, assuming you wish to track that information.

To accomplish that you'll need a database to store the information in. You can create the database using the DIW and I would suggest
that you create an auto number field to supply the coupon number, you can pre or post fix the autonumber field to make it unique.

When the visitor completes the form the confirmation page can display the coupon and you can set it up to have it emailed to them.

P.S. there should be little or no programming required.

HTH,
 
Thanks for the ideas.... To both you you. I will play over the weekend and
see if I can get it done.


MD Websunlimited said:
Hi John,

That part is simple; what is hard is persisting the coupon number so that
it can be identified as a valid coupon for that visitor
and whether or not it has been used, assuming you wish to track that information.

To accomplish that you'll need a database to store the information in. You
can create the database using the DIW and I would suggest
that you create an auto number field to supply the coupon number, you can
pre or post fix the autonumber field to make it unique.
When the visitor completes the form the confirmation page can display the
coupon and you can set it up to have it emailed to them.
 
I made a coupon a while ago, no emailing, just a print button. I made it
increment using the mswc counter. a component included in .asp. It was
fairly simple, I just set a string of letters and numbers to make it look
official and had the counter at the end. You can mark it all up with a font
tag or class/ID it with some .css.

If you don't want to get into a database or other mechanism to increment the
# you may want to look into that component, or even the FrontPage hit
counter (if you make a custom image for the numbers).

HTH

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top