Jump to content

naitsirhc26

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.sleddoggin.com

Profile Information

  • Gender
    Not Telling

naitsirhc26's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I was wondering if anyone could help me to spice up my form. I want to be able to have required fields, sessions, and some way to be able to make it so the form that is sent to my email, is nicer looking. So the form that is sent is more formed. With bold fonts, etc...So it isn't hard to read. I would also like to make it so the person can check the information they typed, make sure it is correct, and then continue, or go back. Is there some way that I can display a link for the person to click to my homepage? If you could, I would love it if you could fix up the code, and paste it back here, and then I can learn from what you wrote. Thank you very much. As you can see, the code is simple and horrible right now: <?php   if ($_SERVER['REQUEST_METHOD']=="POST"){       // In testing, if you get an Bad referer error       // comment out or remove the next three lines       if (strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])>7 ||         !strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']))         die("Bad referer");       $msg="Values submitted by the user:\n";       foreach($_POST as $key => $val){         if (is_array($val)){             $msg.="Item: $key\n";             foreach($val as $v){               $v = stripslashes($v);               $msg.="  $v\n";             }         } else {             $val = stripslashes($val);             $msg.="$key: $val\n";         }       }       $recipient="christian_hollingsworth@yahoo.com, christian@sleddoggin.com";       $subject="Sled Doggin' Contact Form";       error_reporting(0);       if (mail($recipient, $subject, $msg)){         echo "<center><h1>Thank you</h1><p>Message successfully sent! You will be redirected to the home page.</p></center><br>\n"; echo nl2br($input);       } else         echo "An error occurred and the message could not be sent.";   } else       echo "Bad request method"; ?>
  2. Hello, I am new to php, and I was wondering if anyone could point me in the right direction to get started. Right now I am just reading the PHP Manual, and I am using simple php coding on my website. I want to be able to integrate php Online Visitors (site wide online visitors, including message forums), countdowns (to iditarod races), different versions of the site (depending on your resolution and browser), ability to log onto the website from the home page, and anything else to make the website a great place to be. More interactivity. Thank you, Christian
×
×
  • 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.