Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 2 of 2
  1. #1
    Platinum Lifetime Member
    getschoolhelp's Avatar
    Join Date
    Jan 2006
    Posts
    559
    DNF$
    435
    Bank
    0
    Total DNF$
    435
    Donate  

    Exclamation help me find this code please

    Hello,

    You know those numbers on the top of bottle caps like pepsi, and it says you can win a XBOX! if you get the right code, and the code on ur bottom cap, you go to lets say pepsi.com and type that code in, and it will either say YOU WON! or try again!

    I need that code, that will only have one right input and redirect to eithr the winning one or the lossing page..

    anyone know where I can get that?

    I'd like it to be ALL ready made, and i just got to edit it

    price doesnt matter. thanks

  2. #2
    Platinum Lifetime Member
    GlobalFusion's Avatar
    Join Date
    Jan 2005
    Location
    Australia
    Posts
    477
    DNF$
    867
    Bank
    0
    Total DNF$
    867
    Donate  

    Re: help me find this code please

    You mean something like this?

    (just a little something i threw together quickly - feel free to use, and pass on TR if you do.)

    PHP Code:
    <!--

    Winning Code: 8374

    -->
    <?php
    $winningCode 
    8374;


    $code=$_GET['code'];

    if((isset(
    $code))&&($code == $winningCode)){
    $msg 'Congratulations! <br /> You entered the winning code!';
    echo 
    $msg;
    exit();
    }elseif((isset(
    $code))&&($code != $winningCode)){
    $msg 'The entered code is not a winner.';
    }else

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
      <title>Enter Your Code to see if you won</title>
    </head>

    <body>
    <?
    echo $msg;
    unset(
    $msg);
    ?>
    <form name="codeChecker" action="<?=$PHP_SELF?>" method="get" enctype="text/plain" target="_self">

    <b>
    Enter Your Code:
    </b>
    </br>

    <input name="code" type="text" size="5" maxlength="5" tabindex="2" />
    <input type="submit" name="check" value="Check My Code!" tabindex="2" />
    </form>


    </body>

    </html>
    The *one thing* necessary for ParkingSite profits
    [»»» Today's Hot Domain Sale! «««]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com