1

(3 replies, posted in CSS)

As the main page will alter length depending on the data I have decided to go with the min-height option.
I know it is probably wrong, but IE8 has been around for a while and it is bad enough now getting used to that without having to worry about IE6. Stats show that around 10% are still using IE6, but 90% are not. Times move on and it's a personal site.

2

(3 replies, posted in CSS)

On pages with less content the line on the content div doesn't extend down to the bottom how do I force it down?
http://www.mad-weather.com/warnings.php

3

(8 replies, posted in CSS)

Thanks Lynne, no idea how or where that came from hmm
It wasn't intentional to lose the scrollbar. There are one or two other issues with IE8 regarding sizes of divs that work perfectly in Firefox and IE7 but mess up in 8. I hadn't realised what a hash that made of my pages.  sad
Once it is sorted it will go out on its own domain.
Oh well sun shining, that makes a change.  smile

4

(8 replies, posted in CSS)

oops  roll

www.sanssouciwebdesign.com/weather/index.php

5

(8 replies, posted in CSS)

It works fine in everything else and is set to emulate IE7 so what have I done to lose the scroll bar in IE8? Fairly certain this is a CSS issue.

I've been using HostPapa for a couple of years and so far so good. I can host multiple domains on one hosting package which I have found useful. Response to emails is pretty good and very little downtime that I have noticed. Linux only hosting.

I just end up with the smaller image and too longer download time

I'm adding a web cam image to my page which to begin with only shows as a thumbnail. The text on the script says to add the size, which at first doesn't do anything because of <noscript></noscript> around the link. When I take that away I end up with two images.

How do I get rid of the smaller image?

http://www.sanssouciwebdesign.com/weather/web_cam.php

9

(8 replies, posted in PHP)

Hi Ben, sorted those out, but now need to sort out a bit more of the CSS as it now doesn't look right.

Most of it does validate, just have one major headache as the errors lie in the script and for the life of me I can't find them to correct them.

Back to the drawing board. Oh to know more php.

We have had the wettest December since records began which was only 1931. Don't know about you Virtual but we get very localised weather.

10

(8 replies, posted in PHP)

Partially successful.

No scroll bar!!

11

(8 replies, posted in PHP)

Thanks Virtual, someone else suggested that it was browser related and that it maybe my CSS menu.

This computer only has Firefox and IE8, my testing computer had IE7, Firefox, Chrome, Safari and Opera, but decided to crash on New Years day!!
I will try your fix and see how I get on.

Maybe it is wrong of me, but I am not going to worry about IE6, we are on 8 now and most people must be on XP plus by now.

Hope you have better weather than we have had, 100m or rain since the beginning of the year.

Will let you know how I get on.

12

(8 replies, posted in PHP)

Thanks for looking Susie.

Are you able to view the whole site as that is all that is on the homepage at the moment.

First I knew there was a problem was a friend said he couldn't view it and then checked with a weather forum, one can't and one can so far.

Seems really strange.

13

(8 replies, posted in PHP)

Address is http://www.sanssouciwebdesign.com/weather/

All shows fine for me and on my OHs computer, but have since found out that only the header is showing for everyone else.

Basically the site pulls in a lot of scripts for various things and I am presuming that this is causing some conflict. But how do I test for it as it is working for me?

Hoping one of the techies can come up with an answer.

14

(1 replies, posted in PHP)

I successfully worked out how to set a hidden field and the php code to return the error if it was filled in using the if else statement.
It all worked fine in testing, but when I transferred the code to the intended webpage it's not working. When submitting the form it returns a page not found 404 error and the url is showing the formmail.php suffix.
Any ideas where I am going wrong?
www.sanssouciwebdesign.com/weather/contact.php

php code is

<?php
// Input Your Personal Information Here
$mailto = '*' ;
$from = "Madeira Weather" ;
$formurl = "http://www.sanssouciwebdesign.com/weather/formmail.php" ;
$errorurl = "http://www.sanssouciwebdesign.com/weather/error.php" ;
$thankyouurl = "http://www.sanssouciwebdesign.com/weather/thankyou.php" ;
// End Edit

// prevent browser cache
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

function remove_headers($string) {
  $headers = array(
    "/to\:/i",
    "/from\:/i",
    "/bcc\:/i",
    "/cc\:/i",
    "/Content\-Transfer\-Encoding\:/i",
    "/Content\-Type\:/i",
    "/Mime\-Version\:/i"
  );
  if (preg_replace($headers, '', $string) == $string) {
    return $string;
  } else {
    die('You think Im spammy? Spammy how? Spammy like a clown, spammy?');
  }
}

$uself = 0;
$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;

if (!isset($_POST['email'])) {
    header( "Location: $errorurl" );
    exit ;
}


// Input Your Personal Information Here
$name = remove_headers($_POST['name']);
$email = remove_headers($_POST['email']);
$subject = remove_headers($_POST['subject']);
$comments = remove_headers($_POST['comments']);
$http_referrer = getenv( "HTTP_REFERER" );
// End Edit

if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i",$email)) {
header( "Location: $errorurl" );
    exit ;
}

// Input Your Personal Information Here
if (empty($name) || empty($email)  ||empty($comments)) {
   header( "Location: $errorurl" );
   exit ;
}
// End Edit

if ($subject == '') {
//all your things here, e.g. add data to database, email, etc
header( "Location: $thankyoururl" );
   

} else {
header( "Location: $errorurl" );
    exit ;
}

 
if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) {
    header( "Location: $errorurl" );
    exit ;
}
if (get_magic_quotes_gpc()) {
    $comments = stripslashes( $comments );
}

// sets max amount of characters in comments area (edit as nesesary)
if (strlen($comments) > 1250) {
$comments=substr($comments, 0, 1250).'...';
}
// End Edit

$message =
    "This message was sent from:\n" .
    "$http_referrer\n\n" .
   
    // Input Your Personal Information Here
    "Name: $name\n\n" .
    "Email: $email\n\n" .
    "Subject: $subject\n\n" .
    "Comments: $comments\n\n" .
    "\n\n------------------------------------------------------------\n" ;
    // End Edit

mail($mailto, $from, $message,
    "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep );
header( "Location: $thankyouurl" );
exit ;

?>

15

(2 replies, posted in PHP)

Sorry I don't understand, my knowledge of php is pretty basic.

16

(2 replies, posted in PHP)

I've been using Eric's contact form on my website for a while without any problems. The odd spam arrived, but nothing much to worry about. Now I'm getting up to a dozen a day and it will probably only get worse. I don't want to use Capcha as I have problems reading those myself so I thought I would use the honeypot trap of a hidden field.

So far I have managed to hide the field using CSS but I don't know how to set the php to return the error when the field is filled in. All the other fields return errors if they are left empty. Tried searching the internet but not much out there in the way of coding examples.

Any ideas please.

17

(4 replies, posted in Beginners Web Design)

F12 for me opens the Firefox browser, which is my default.
Ctrl F12 opens it with Opera, can be set to which browser you require but I can't remember how.:rolleyes:

18

(4 replies, posted in Beginners Web Design)

Thanks, looking better now.

Just having a problem now with WAMP, while it looks fine live, one page is looking terrible on the server, much like it does with Dreamweaver, now I'm used to that but expect the server to be the same as live.

Unable to use any of the web tools with Firefox on this computer, after one of the last updates to Firefox the web tools toolbar won't show and if it is downloaded the adblock doesn't show up. Tried a clean reinstall, but still the same. Works fine on my other computer.

19

(4 replies, posted in Beginners Web Design)

The page in question is http://www.holytrinity-madeira.org/news.php

Two of the photos sit happily side by side, but further down the page the two pictures are not, but I have used the same code.
I am trying to edit the page, and removed a lot of stuff, not live yet and when I try and sit two more photos side by side it ends up in a real mess.

What am I doing wrong, as this has worked before and I am getting really frustrated trying to get it to work.

20

(2 replies, posted in Open Forum)

I have checked the who is, and the domains are registered under the client names. Both websites will be down now until something is sorted as neither I nor the client can change the passwords, which is something I find very strange. Last time it took over a week before new passwords were issued, they just ignored the emails from the client. I can't email the hosts as my Portuguese is not very good.

I've been using hostpapa myself for a couple of years, bit more down time than I would like sometimes, but they are quick to answer any emails when there is a problem. Canada/US and UK based, but it doesn't really matter these days. I like them because you have more than one domain on the hosting and the two sites that have been hacked could also share hosting, neither are big sites.

Although I didn't charge for the building of these sites, they are friends, I can't help feeling somehow it reflects on me that this has happened again. I've checked the other sites that I run and they are all clean. Is it something I could have prevented or does the host have a glaring hole in their security or an aggrieved employee who has access to the passwords.

21

(2 replies, posted in Open Forum)

A few weeks ago I posted about a website being hacked into, script injection on the index page. Google wouldn't allow you to look at the site and I couldn't view the index page with cuteftp, access was denied.

Eventually the host, which is secondardy hosting in Portugal but really Fast Hosts in UK, supplied new passwords. You can't change the passwords or username yourself. They suggested the site had been the victim of script injection and interestingly enough there is a page on their website about the subject.

This morning a friend messaged me to say that one of the sites had malware on it again, I wasn't refused access and could view the script, which is on  Before Google had denied access and AVG had flagged. Every page on two websites with the same host have had a script put on. The script starts kc and are just a bunch of numbers with kjpove function.

This has to be a hosting problem surely, for it to happen twice.

I've said they've got to change the hosting and probably the web address, trying to switch it over would be a nightmare with their hosts who take ages to answer emails.

22

(9 replies, posted in CSS)

Solved.

It is there, just depends on how big I have it showing on this monitor, an oldish 19"TFT if I make it smaller or larger the border appears again.
Very strange though.
Feel there must be something with my code that is not quite right.

Thanks for your time.
Will sort validating the rest of the pages now.

23

(9 replies, posted in CSS)

It is the border between the first and second row and appears to only be a Firefox issue, checked all the others and they are fine.

24

(9 replies, posted in CSS)

Thanks for that, also found http://www.w3schools.com/tags/tag_tfoot.asp
The page now validates, but I'm still left with one of the borders missing, or at least it is in Firefox, not checked the others yet.

25

(9 replies, posted in CSS)

I am now down to 1 error unless the wunderground link defaults.

not allowed <tfoot>

this is the code as i'm not sure what I have done wrong.

<table>
<thead>
  <tr>
    <th colspan="4">Tidal Predictions</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <td><?php tides(0); ?></td>
    <td><?php tides(1); ?></td>
    <td><?php tides(2); ?></td>
    <td><?php tides(3); ?></td>
  </tr>
  <tr>
    <td><?php tides(4); ?></td>
    <td><?php tides(5); ?></td>
    <td><?php tides(6); ?></td>
    <td><?php tides(7); ?></td>
  </tr>
  <tr>
    <td><?php tides(8); ?></td>
    <td><?php tides(9); ?></td>
    <td><?php tides(10); ?></td>
    <td><?php tides(11); ?></td>
  </tr>
  <tr>
    <td><?php tides(12); ?></td>
    <td><?php tides(13); ?></td>
    <td><?php tides(14); ?></td>
    <td><?php tides(15); ?></td>
  </tr>
  <tr>
    <td><?php tides(16); ?></td>
    <td><?php tides(17); ?></td>
    <td><?php tides(18); ?></td>
    <td><?php tides(19); ?></td>
  </tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">
<?php tidesv(); ?>
</td>
</tr>
</tfoot>
</table>