Jump to content

jlhaslip

Advanced Member
  • Posts

    524
  • Joined

  • Last visited

Everything 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. jlhaslip

    I'm new at all this Css

    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. Bad news. It breaks in both FF3 and Opera 9 at 1280 wide.
  4. jlhaslip

    I'm new at all this Css

    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.
  5. jlhaslip

    serial number

    It does it all by itself.
  6. It looks to me like a spammer's script to use your mail facility as a mail forwarder. Masking the page results as an error page. Nasty stuff.
  7. jlhaslip

    serial number

    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.
  8. No, use the Account Control Panel, or Cpanel, at your Account Log-in page. phpmyadmin should be accessed on the Hosting Account.
  9. Here is my favourite IE-only CSS file: body { display:none; }
  10. jlhaslip

    serial number

    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.
  11. Lose the position: absolute and add a strict Doctype
  12. jlhaslip

    Background

    body { background-image: url('images/bg.gif'); background-repeat: no-repeat; background-attachment: fixed; }
  13. place the favicon in the Root Folder, and name the favicon as favicon.ico. You need to look at using a modular site or a CMS, maybe?
  14. jlhaslip

    Background

    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?
  15. jlhaslip

    Feedback Form

    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
  16. $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); ?>
  17. 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
  18. Welcome, and we had our Holiday last weekend (Canuck).
  19. Uggg! try !empty($email)
  20. // Clean Email if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i",$email) && ( ! isblank($email))) { header( "Location: $errorurl" ); exit ; }
  21. 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.
  22. jlhaslip

    arrays simple question

    $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'];
  23. Absolutely postitioned elements will not adjust to various display sizes. You will need to convert to a floated div layout with percentage widths. Lots of them avilable. http://www.google.ca/search?q=fluid+centred+layouts&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a
  24. 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.
  25. Correct. I 'space them out' so they are easier to read. Personal choice.
×
×
  • Create New...