homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Simple HTML form for coupon codes?
SMedia




msg:4368346
 4:32 pm on Sep 28, 2011 (gmt 0)

I'm trying to set up a VERY simple form box for a single coupon code.

Is it possible to send a user to a different page when they enter a specific code?

Nothing fancy, as there will be only one code that works.

For example, customer enters "XYZ" in the box, hit's submit, and get's sent to a discounted version of the product.

If they enter the wrong code, they get redirected to a different page.

Is this possible in HTML only?

 

tedster




msg:4368373
 5:11 pm on Sep 28, 2011 (gmt 0)

Welcome to the forums, SMedia.

No, that's not something you can do with HTML alone. It's going to take scripting of some flavor or other. The script will run either server-side (most likely) or possibly client-side (like javascript) if the number of possibilities are minimal and not changing very frequently.

jalarie




msg:4370369
 11:44 pm on Oct 3, 2011 (gmt 0)

If you run it client-side, I can get to your discounted version.

piatkow




msg:4372680
 11:53 am on Oct 10, 2011 (gmt 0)

Of course it is possible to work around any client side coding, how javascript savvy are your visitors likely to be? Its a risk that you must consider if going for JS but most web users (and a significant number of amature webmasters) don't even understand that the source code exists.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved