Jump to content

jlhaslip

Advanced Member
  • Posts

    524
  • Joined

  • Last visited

Posts posted by jlhaslip

  1. The reason you receive the auto-reply is due to the fact that you are emailing yourself form this page.

    Add a section to the script which sends a "thank You for your email" reply to the user submitting the information.

    Easy enough to do, just add another mail() using their address, or add a CC: header.

     

    And stop the Auto-response at your mail client end, if you can adjust that using a whitelist/blacklist.

  2. Necessary? Depends what you want the page to look like.

     

    >
    <br />.inline { display: inline; border: 1px solid red; }<br />.block { display: block; border: 1px solid blue; }<br />
    </pre>
    <ul>
    list item
    list item
    list item
    list item
    </ul>
    <br><br><ul>
    list item
    list item
    list item
    list item
    </ul>
    <br><br><ul class="inline">
    list item
    list item
    list item
    list item
    </ul>
    <br><br><ul class="block">
    list item
    list item
    list item
    list item
    </ul>

    As you can see by the Borders, Block level are extended the width of their containing block and have a 'new-line' aspect.

  3. In-line is a term used for elements that do not include a line-break before and after them. A Span of text inside a paragraph is an in-line element.

    The paragraph is a block element. It has (normally) a line-break before and after it.

     

    Can't get any simpler than that. :lol:

  4. Simply let the Database management system handle the 'keys'.

    They do not need to be starting at '1' or they do not need to be consecutive.

    The DBMS will handle them just fine with missing elements.

  5. I suggest you "DROP" the database and start with a new install.

    The auto-increment primary key does not need to start at one. That is a human consideration.

    The Database only needs a unique value. And to answer your next concern, the index key does not need to be consecutive. If you delete a key, the DB will know about it and handle the list properly.

  6. 3000?2543 jpg is a very large file size for a background. Especially for Dial-up users.

    Jpg 's can be reduced in size physically and also reduced by 'optimise for Web' which will reduce the quality a little, but barely noticable. Can you use only a small slice and repeat the background?

  7. Try this:

    else {
     $body =  "Date: $date\n", 
     $body .=  "Dive Site Location: $dive_site\n", 
     $body .=  "Depth: $depth\n",
     $body .=  "Additional Information: $additional_information\n", 
     mail ( "larissahn@rocketmail.com", "Report Lionfish Sighting Form", 
      $body,
     "From: $name " ) ;

     

    http://php.net/mail

  8. $to      = 'nobody@example.com';
    $subject = 'the subject';
    $message = 'hello';
    $message .= "\r\n";
    $message .= $_POST['uremail'];
    $message .= "\r\n";
    $message .= 'End message';
    $headers = 'From: webmaster@example.com' . "\r\n" .
       'Reply-To: webmaster@example.com' . "\r\n" .
       'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    ?>

  9. The mail function needs a minimum of 3 parameters.

    To, Subject and Message are required, Additional headers and Parameters are optional, although the From header is suggested to avoid becoming Spam.

     

    $to      = 'nobody@example.com';
    $subject = 'the subject';
    $message = 'hello';
    $headers = 'From: webmaster@example.com' . "\r\n" .
       'Reply-To: webmaster@example.com' . "\r\n" .
       'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    ?>
    

     

     

    http://ca.php.net/manual/en/function.mail.php

  10. Judging by the links on that page, you will need a very complex html-only site, mod-rewrite to manage the urls, or you have a modular design that uses a single php index page to sort through the pages available. The last two require a Server installed Locally.

    The thing that suggests the above are the on-hover urls become SEO-friendly, with no file extensions.

  11. $this_variable = "This Variable";
    echo "This part " . $this_variable . " and another part. 
    ";
    echo 'This part ' . $this_variable . ' and another part. 
    ';
    echo "This part  $this_variable  and another part. 
    ";
    ?>
    

    The example you have uses the concatenation operator, like the first and second example I posted.

    The Third line above has the variable embedded inside double quotes, which gets parsed as the variable contents. The echo with single quotes do not get parsed as php code, so it actually runs quicker on the Server.

    Also, to ensure that your code will work on more Servers without difficulties, I suggest that you add the single quotes inside the square Array brackets.

    $salaries ['Bob'];

  12. The method I use to place the Footer at the bottom of the page is Ryan Fait Sticky Footer.

    Google it. It uses the height of the footer and negative margins. Works for me. On long pages, the footer is off the display, but on the shorter pages it is at the bottom of the display. As I read your question, that is what you are asking for, I think.

×
×
  • Create New...