jlhaslip
-
Posts
524 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Posts posted by jlhaslip
-
-
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.
-
Bad news. It breaks in both FF3 and Opera 9 at 1280 wide.
-
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.
-
It does it all by itself.
-
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.
-
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.
-
No, use the Account Control Panel, or Cpanel, at your Account Log-in page.
phpmyadmin should be accessed on the Hosting Account.
-
Here is my favourite IE-only CSS file:
body { display:none; }
-
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.
-
Lose the position: absolute
and add a strict Doctype
-
Background
in CSS
body { background-image: url('images/bg.gif'); background-repeat: no-repeat; background-attachment: fixed; }
-
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?
-
Background
in CSS
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?
-
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 " ) ;
-
$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); ?>
-
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); ?>
-
Welcome, and we had our Holiday last weekend (Canuck).
-
Uggg!
try !empty($email)
-
// Clean Email if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i",$email) && ( ! isblank($email))) { header( "Location: $errorurl" ); exit ; }
-
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.
-
$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'];
-
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.
-
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.
-
Correct. I 'space them out' so they are easier to read. Personal choice.
Mail Form sends me my own AutoReply
in PHP
Posted
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.