Jump to content

chaddesign

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chaddesign's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This worked too, without the need of a database, it's purpose is just a hub. Thanks a bunch man! <?php /** * @author john boy * @copyright 2012 */ if($_POST['submit']){ $number_array=array('AbCd1zyZ9', 'foo!#$bar'); if(preg_match("/^[a-zA-Z0-9]+$/", $value)){ echo "<b>Sorry stop trying to use stupid letters, you no the rules dude! </b><br />"; } foreach($number_array as $val=>$number_wanted){ if($_POST['num']=="1g2h3j"){ header("location: /1g2h3j.php"); } if($_POST['num']=="2v3b4n"){ header("location: /2v3b4n.php"); } if($_POST['num']=="4n5j6i"){ header("location: /4n5j6i.php"); break; }else{ echo" It not there"; break; }
  2. GOT IT! It's workin great! Is there a way to allow letters as well? Sorry to sound like a novice, but when it comes to development, I am. Design is my strength, lemme know you're ever in the need!
  3. Awesome, that's so close to exact! But the other values (456, 789) don't work, just the primary code does. Shoot me a paypal invoice and I'll toss you some bones for the trouble.
  4. Thats kinda what I'm looking for, but not exactly. Here is my goal, I have a product I'm selling, I have a spash page to funnel the users, each advertising avenue has it's own discount code. I want the discount code to take the user to it's own ordering page, so I can know which form of advertising is working best, based on which page gets the most orders
  5. What needs to happen is when a link is clicked, the lytebox opens and has a single text field. Depending on what is entered in that field , is what determines where you go. So i need to know how to code that. For example, when someone clicks a button "Enter Code" .... a lytebox pops up with an entry field for the user to enter the code, lets say we have 2 codes, 1) 000000 2) QYWN39 If the user enters code "000000" ...the lytebox closes and "Code1.php" is loaded if the user enters code "QYWN39" ...the lytebox closes and "Code2.php" is loaded make sense? I'm thinking of a single file, simple code... not database driven, I don't need an admin panel. Any help is appreciated! Thanx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.