/    Sign up×
Community /Pin to ProfileBookmark

Creating a Coupon

I need to create a coupon for an automotive website.
Can anyone help?

to post a comment
Full-stack Developer

5 Comments(s)

Copy linkTweet thisAlerts:
@the_treeFeb 04.2005 — Well what sever-side languages are you using? What type of database do you have? Does the coupon have monetary value, so does this need to be secure? Is the coupon for something on the site or external (like an automotive)?
Copy linkTweet thisAlerts:
@KimBauthorFeb 04.2005 — Wow! I just want to create a clip and save coupon for 20 % off your next Tune Up..... something like that.

Very simple but professional looking. Would that need be in a gif format????
Copy linkTweet thisAlerts:
@the_treeFeb 04.2005 — Right, so you want this to be a printable coupon right? Presumably you'd want everyone to be unique to prevent forgery, so if you were using an image (I wouldn't) then you'd still want it generated dynamicaly, this can be done with some specalist software that not all hosts provide.

If you do go with that then pretty much any widely supported image format would do.

On the other hand, it would be easier just to present users with a free unique code generated some relatively simple server side scripting, probably with php or asp depending on what your host caters for. Checking for if the codes have been used already would be slightly trickier but do-able.
Copy linkTweet thisAlerts:
@NogDogFeb 04.2005 — You could do it with HTML and CSS:
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang='en'&gt;
&lt;head&gt;
&lt;meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'&gt;
&lt;title&gt;Untitled&lt;/title&gt;
&lt;style type="text/css"&gt;
&lt;!--
div.coupon {
width: 400px;
margin: 10px auto;
border: 1px dashed black;
padding: 10px;
font: 14px Arial, sans-serif;
}
div.border {
margin: 0;
padding: 10px;
border: solid 2px black;
}
.coupon img {
float: left;
margin: 0 10px 0 0;
}
.coupon p {
float: right;
}
.coupon p.end {
float: none;
clear: both;
font-size: 12px;
margin: 5px 0;
background-color: #ccc;
text-align: center;
}
.coupon h1 {
clear: both;
text-align: center;
margin: 5px 0 10px 0;
font-size: 32px;
border-bottom: solid 1px black;
padding-bottom: 5px;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div class=coupon&gt;
&lt;div class=border&gt;
&lt;h1&gt;20% Off Next Tune-Up&lt;/h1&gt;
&lt;img src="something.gif" height=100 width=100 alt="tuneup picture or logo here"&gt;
&lt;p&gt;Present this coupon to get 20% off your next tune-up.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.&lt;/p&gt;
&lt;p class=end&gt;Good through 12/31/2005. May not be combined with other offers.&lt;/p&gt;
&lt;/div&gt; &lt;!-- end border --&gt;
&lt;/div&gt; &lt;!-- end coupon --&gt;

&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@KimBauthorFeb 04.2005 — Hey NogDog,

Thanks! That was exactly what I was asking for!!!!!

KimB
×

Success!

Help @KimB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...