Jump to content


  • Posts

  • Joined

  • Last visited


Posts posted by john010117

  1. Very nice. I like the simplicity!

    Now for the technical parts...


    You do know that half the links on the nav bar doesn't work, right?

    The contact form is secure. You should maybe add a CAPTCHA to it.  ;)

  2. Are you sure this is normal behavior? It's pretty stupid of MS to do this.


    Like a guy said once (or in his sig) in this forum...


    They were developing IE for a few years, but they still haven't got it right.


    ... or something to that effect.

  3. <?php
    $adminaddress = "info@gsxtreme.co.uk"; 
    $siteaddress ="http://www.gsxtreme.co.uk"; 
    $sitename = "GS Xtreme Sales LTD"; 
    //No need to change anything below ... 
    // Gets the date and time from your server
    $date = date("m/d/Y H:i:s");
    // Gets the IP Address
    if ($REMOTE_ADDR == "") $ip = "no ip";
    else $ip = getHostByAddr($REMOTE_ADDR);
    // Gets the POST Headers - the Flash variables
    $action = $_REQUEST['action'] ;
    $email = $_REQUEST['email'] ;
    $firstname = $_REQUEST['firstname'] ;
    $name = $_REQUEST['name'] ;
    $company = $_REQUEST['company'] ;
    $city = $_REQUEST['city'] ;
    $comments = $_REQUEST['comments'] ;
    //Process the form data!
    // and send the information collected in the Flash form to Your nominated email address
    if ($action == "send") {
    mail ("$adminaddress","Info Request",
    "A visitor at GS Xtreme Sales LTD website has left the following information\n
    Firstname: $firstname 
    Email: $email\n
    The visitor, $firstname, commented:
    Logged Info :
    Hostname: $ip
    IP address: $REMOTE_ADDR
    Date/Time:  $date","FROM:$yourmailadress" ) ; 
    //This sends a confirmation to your visitor
    mail ("$email","Thank You for visiting GS Xtreme Sales LTD", 
    "Hello $firstname,\n
    Thank you for your interest in GS Xtreme Sales LTD!\n
    We will get back to you within 24 hours.
    Best Regards,
    GS Xtreme Sales Costumer Support.") ;


    You forgot the ending quotes in mail().

  4. If you don't want your users to have to hassle to open up their e-mail program and look for the e-mail (which is most likely in the spam folder), I suggest you create a function like this to check if the e-mail address is in the correct format.


    function check_email_address($email) {
       // First, we check that there's one @ symbol, and that the lengths are right
       if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
          // Email invalid because wrong number of characters in one section, or wrong number of @ symbols.
          return false;
       // Split it into sections to make life easier
       $email_array = explode("@", $email);
       $local_array = explode(".", $email_array[0]);
       for ($i = 0; $i < sizeof($local_array); $i++) {
          if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {
             return false;
       if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) {
          // Check if domain is IP. If not, it should be valid domain name
          $domain_array = explode(".", $email_array[1]);
          if (sizeof($domain_array) < 2) {
             // Not enough parts to domain
             return false;
          for ($i = 0; $i < sizeof($domain_array); $i++) {
             if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) {
             return false;
       return true;

  5. Tone down the colors a bit. But fortunately for you, I mustered up the courage to navigate around the site. Your "special offers" page is blank. I've just sent a blank e-mail using the contact form. You can do better than that! Oh god. I'm now half blind.  :o

  6. MAn you're a life saver. thanks a lot

    One more question. When the user comes back t finish entering data I want him to start where he ended up last time. Do I need another field to remember the page if the status field says incomplete



    That would be helpful.

  7. You didn't specify where the form should send the data to.

    <title>Email Submission Page</title>
          <form method="post" action="config.php">
                Please enter a valid email address
          <input type = "text"
                 name = "email"
                 value = "">
          <input type = "submit"
                 name = "submit"
                 value = "$_post"
    include  insert.php

  • 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.