Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member Wynn455's Avatar
    Join Date
    Jun 2009
    Location
    Ca
    Posts
    93
    Member #
    19142
    Liked
    1 times
    Im trying to figure out how to have an Input Box with a Submit button that will redirect you to another Page.

    In other words, Im doing a Promotional Box.
    In the Box if you type Promo Code 123 it will take you to mypage.com/promo1.html
    Or if you type Promo Code 890 it will take you to mypage.com/promo2.html
    So On
    I know you would need a Database to list Codes and Redirects, But thats all. Could you please help?

    Thx

  2.  

  3. #2
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Don't necessairly need a DB unless you're gonna be running a bunch of promos... And you just need something to manage it.

    With asp ... You'd just catch the data from the form they entered with the request.form("promo_code") or something similar , then a series of if then elseif statements to redirect them to the proper destination.

    I'm sure it can be done similarly with php, but quite honestly, I'm not that familiar with it...

  4. #3
    Member Wynn455's Avatar
    Join Date
    Jun 2009
    Location
    Ca
    Posts
    93
    Member #
    19142
    Liked
    1 times
    Maybe like 15 Different Promos, Still doing research on the request.form


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com