Jump to content

Q

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

About Q

  • Birthday 05/18/1989

Profile Information

  • Gender
    Male
  • Location
    Pune, India (Originally from Denmark)

Q's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No, your complete path like /public_html/site.tld/profile/avatars/blah.jpg
  2. You need to remember your curly brackets! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-… <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Validate Credit Card</title> </head> <body> <H1> Validate Credit Card </H1><hr /> <?php if (!isset($_GET['ccnumber'])) { echo "<p>Enter your credit cad number.</p>"; } else { $Payment = $_GET['ccnumber']; $ValidPayment = str_replace("-", "", $Payment); $ValidPayment = str_replace(" ", "", $ValidPayment); if (!is_numeric($ValidPayment)) { echo "<p>You did not enter a valid credit card number!</p>"; } else { echo "<p>Your credit cardnumber is $ValidPayment.</p>"; ?> <form action="ValidateCreditCard.php" method="get" enctype="application/x-www-form-urlenc… <p><input type="text" name="ccnumber" size="20" value=""<?php if (!empty($_GET['ccnumber'])) echo $_GET['ccnumber'] ?> /></p> <p><input type="submit" value="Validate Credit Card" /> </form><hr /> </body> </html> You can't go and mix it all up like you've done..
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Home</title> </head> <body> <?php require_once("newlink.php"); $obj = new newlink(); if (isset($_GET["page"]) && $_GET["page"] == 1) { echo $obj->displayPage(); } else { echo $obj->displayLink(); } ?> </body> </html>
  4. Okay? How bout using a session with an array of sites visited?
  5. What kind of hosting do you have?
  6. In that case you probably have a { or } too much somewhere
×
×
  • 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.