Jump to content

dezkit

Members
  • Posts

    1,236
  • Joined

  • Last visited

Everything posted by dezkit

  1. Post the code that you are using currently.
  2. Use preg_replace and RegEx
  3. change <?php if ($_SESSION['badge1']=1) { to <?php if ($_SESSION['badge1'] == 1) { P.S. Stop creating new threads, I see you post a new thread on here at least every hour, post all your problems in one f-cking thread. It's really annoying.
  4. Uhh.... I don't get what is so hard with your problem, unless i am reading off
  5. dezkit

    HELP ME !!

    PHP is a scripting language... What in the world did you search in google that brought you up to this site?
  6. dezkit

    HELP ME !!

    hahahahhahahahah
  7. It's easier than you think - Just insert what the person submited in the form into a database, really not that hard.
  8. index.php <form action="process.php" method="post" enctype="application/x-www-form-urlencoded"> <input type=hidden name=member value=1> <!--start primary page table--> <table width=100% cellpadding=0 cellspacing=0 border=0><tr><td> <center> </td></tr><tr><td> <center> <p style="margin-top:8px; width: 791px;"> <b><font color=FF0000>This Order Form Is On A Secure Server For Your Protection</font><br> Access information will be emailed to you immediately upon approval of your Transaction.</b> <p style="margin-top:8px"> <?php switch($_GET['error']) { case "1": echo "<font color=#FF0000><strong>Error - Nothing Selected<br />You must select at least one option.</font>"; break; case "taken": echo "<font color=#FF0000><strong>Username is already in use</font>"; break; case "ip": echo "<font color=#FF0000><strong>Your IP Address has already been signed up</font>"; break; } ?> <table width="750" border="0" align="center"> <tr valign="top"> <td width="400"> <!--start order form layout table--> <?php if($NBAactive) { ?> <table width="100%" cellpadding="3" border="1" cellspacing="0"> <tr> <!--start NBA table--> <td class="orderHeader" align="center">NBA Basketball</td> </tr> <tr> <td> <?php $buffer = ''; foreach ($itemCodes['nba'] as $fieldName => $val){ list($descr, $price) = explode("|", $val); $price = ($price == "N/A")? "N/A": sprintf("%.2f", $price); if($price == "N/A") { $buffer .= "<input type='radio' name='nba' value='$fieldName' readonly> $descr: $price<br>\n"; } else { $buffer .= "<input type='radio' name='nba' value='$fieldName'> $descr: $price<br>\n"; } } echo $buffer; ?></td> </tr> </table> <!--end NBA table--> <?php } ?> <?php if($NCAAFactive) { ?> <!--start NCAA Football table--> <table width="100%" cellpadding="3" border="1" cellspacing="0"> <tr> <td class="orderHeader" align="center">College Football Specials</td> </tr> <tr> <td> <?php $buffer = ''; foreach ($itemCodes['ncaaf'] as $fieldName => $val){ list($descr, $price) = explode("|", $val); $price = ($price == "N/A")? "N/A": sprintf("%.2f", $price); if($price == "N/A") { $buffer .= "<input type='radio' name='ncaaf' value='$fieldName' readonly> $descr: $price<br>\n"; } else { $buffer .= "<input type='radio' name='ncaaf' value='$fieldName'> $descr: $price<br>\n"; } } echo $buffer; ?></td> </tr> </table> <!--end NCAA Football table--> <?php } ?></td> <td width="0"> </td> <td width="400"> <?php if($NCAABactive) { ?> <!--start NCAA Basketball table--> <table width="100%" cellpadding="3" border="1" cellspacing="0"> <tr> <td class="orderHeader" align="center">College Basketball Specials</td> </tr> <tr> <td> <? $buffer = ''; foreach ($itemCodes['ncaab'] as $fieldName => $val){ list($descr, $price) = explode("|", $val); $price = ($price == "N/A")? "N/A": sprintf("%.2f", $price); if($price == "N/A") { $buffer .= "<input type='radio' name='ncaab' value='$fieldName' readonly> $descr: $price<br>\n"; } else { $buffer .= "<input type='radio' name='ncaab' value='$fieldName'> $descr: $price<br>\n"; } } echo $buffer; ?></td> </tr> </table> <!--end NCAA Basketball table--> <?php } ?> <?php if($NFLactive) { ?> <!--start NFL table--> <table width="100%" cellpadding="3" border="1" cellspacing="0"> <tr> <td class="orderHeader" align="center">NFL Pro Football Specials</td> </tr> <tr> <td> <?php $buffer = ''; foreach ($itemCodes['nfl'] as $fieldName => $val){ list($descr, $price) = explode("|", $val); $price = ($price == "N/A")? "N/A": sprintf("%.2f", $price); if($price == "N/A") { $buffer .= "<input type='radio' name='nfl' value='$fieldName' readonly> $descr: $price<br>\n"; } else { $buffer .= "<input type='radio' name='nfl' value='$fieldName'> $descr: $price<br>\n"; } } echo $buffer; ?></td> </tr> </table> <!--end NFL table--> <?php } ?></td> </tr> <tr valign="top"> <td colspan="5"> <?php if($MLBactive) { ?> <!--start Ultimate table--> <table width="400" border="1" align="center" cellpadding="3" cellspacing="0"> <tr> <td class="orderHeader" align="center">Ultimate Lock Pick</td> </tr> <tr> <td> <?php $buffer = ''; foreach ($itemCodes['ult'] as $fieldName => $val){ list($descr, $price) = explode("|", $val); $price = ($price == "N/A")? "N/A": sprintf("%.2f", $price); if($price == "N/A") { $buffer .= "<input type='radio' name='ult' value='$fieldName' readonly> $descr: $price<br>\n"; } else { $buffer .= "<input type='radio' name='ult' value='$fieldName'> $descr: $price<br>\n"; } } echo $buffer; ?></td> </tr> </table> <!--End MLB table--> <?php } ?></td> </tr> </table> </td> </tr> </table> <!--end order form layout table--> <input name="paypal" type="image" value="submit" src="paypal_front.gif" /> <input name="credit" type="image" value="submit" src="creditCard_front.gif" /> </form> <?php } require("footer.php"); ?> process.php <?php if($_POST['paypal']){ header("Location: " . $config_basedir . "orderform.php"); } if($_POST['credit']){ header("Location: " . $config_basedir . "billingInfo.php"); } else{ require("header.php"); ?>
  9. After you have followed the tutorial, use this tutorial to select data from a table http://phpeasystep.com/mysql/6.html
  10. Oh, you get a header error. Warning: Cannot modify header information - headers already sent by (output started at /home/cheezy/public_html/vegasD/secure/index.php:1) in /home/cheezy/public_html/vegasD/secure/index.php on line 3 Look on top of the page after you submit the form, there has to be nothing after or before the <?php ?> tags.
  11. Try changing <form action="" method="post" enctype="application/x-www-form-urlencoded"> to <form action="<?php echo $_SERVER['PHP_SELF'];" method="post" enctype="application/x-www-form-urlencoded">
  12. Can you post the code of the form page? Edit: No it's not!
  13. Hahahahahahahahahahahaha
  14. Use this website to create a registration and login code: http://www.swish-db.com/tutorials/view.php/tid/601 (I found this on google....) After you are done, post in this thread. I will create you the rest of the code
  15. try if(isset($_POST['paypal'])){
  16. change if($row = mysql_fetch_assoc($result)){ to if($row == mysql_fetch_assoc($result)){
  17. You can also use a session.
  18. Sorry for so much bumping (really i am.) but i have this code: <?php $alpha = "a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 0"; $alphaArray = split(" ", $alpha); //spelling type here foreach ($alphaArray as $alpha) { foreach ($alphaArray as $alpha2) { $main = $alpha.$alpha2; $filename = "http://profile.mygamercard.net/$main"; $handle = fopen($filename, "r"); if(strpos($handle, "does not exist on Xbox Live!") > 0){ echo "true"; } else { echo "false"; } } } ?> I keep getting error "Warning: fopen(http://profile.mygamercard.net/aa) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/cobi/public_html/testtt.php on line 11 false"
  19. Anyways, does anybody know how to check if there a letter in a string?
  20. I don't care about my server, i got infinite bandwidth And yeahhhh.... uh... I don't get what does range() do
  21. It's the foreach loop
  22. I got one more question, i have this right now <?php $alpha = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"; $alphaArray = split(" ", $alpha); foreach ($alphaArray as $alpha) { foreach ($alphaArray as $alpha2) { echo $alpha . $alpha2 . "<br>"; } } ?> Is it possible so that every combination gets checked if its valid in "http://profile.mygamercard.net/*". If the gamertag exists, echo true, and if not echo false. elaborated: - php fread http://profile.mygamercard.net/x (x as in the combination of letters) - if the content displays "does not exist on Xbox Live!", echo false - Else echo true Thanks sooooooooooooooo much in advance!!!
  23. Thanks, it works now
  24. Nevermind, i fixed it, but it shows nothing but a comma on my page <?php $alpha = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"; $alphaArray = split(" ", $alha); foreach ($alphaArray as $alpha) { foreach ($alphaArray as $alpha2) { echo $alpha . $alpha2 . ", "; } } ?>
×
×
  • 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.