Jump to content

Romy Li

Members
  • Posts

    13
  • Joined

  • Last visited

Romy Li's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Romy Li

    Creating a menu

    Hi Shinta,What editor do you use to edit the .htaccess file ? I cannot get the 'include' to work once I loaded the source to the host. So I want to try your suggestion of adding the few lines of code. Thanks.
  2. Hi Chris,I have just found out that :If I run the HTML using Firefox from within Dreamweaver 6, I have the problem mentioned in my last post. When I just run the HTML using Firefox, I don't have the problem anymore. Both Firefox and IE are consistent. So I suppose the problem seems to be caused by Dreamweaver 6. Thank for very much for you help.
  3. Thanks for your quick response. This time the css fixed most of the problem with Firefox. The only thing is that Firefox does not seems to treat Nav and Content as next to each other, but Nav being above Content. So if you put in some text in Nav you will see the Content being pushed down, looking really off. Any ideas ?? Thanks again.
  4. Thank you for taking time to help me. I have tested out the new codes. The CSS works very good when I ran it using IE, thank you. However the layout was totally out when tested using firefox. Would you be able to have another look for me ?thanks again
  5. Just posted a question today and then find this, just missed you by a day !!
  6. Romy Li

    page layout

    I have tried including the navigation set up as a separate HTML page as suggested. The menu items shows up when I tested it in IE and Firefox thanks for your help.However, because I am using Dreamweaver 6 to do the coding, Dreamweaver cannot resolve the inclusion and flagged the line as error and would not display any of the rest of my design view. Would you or anybody knows how I can get around this problems ?If I use PHP include the menu, I assume I must have PHP installed in my PC. Are there any site I can download the PHP (Sorry I know next to nothing about PHP so if I have a bit of pointers I would really appreciate it.)Thanks again.
  7. Hi ChrisThanks for the help, I have added the CSS as you mentioned and got the page to be in the shape I want. The layout tested in Mozille Firefox is more or less what I need. But when tested in IE6, the content Div go out to the right. I have enclosed my css and HTML. I hope you can help me again on this.Two problems :1) The Content go further than the specified 620 px.2) The border line of the container shows there is a second border on top of the content Div.Thank you very much. CSS body { color: red; margin: 0; padding:0; font-family: arial, helvetica, sans-serif; } /* Navigation div rules & children */ #header { color: red; border: 1; padding: 0; height: 100px; width: 750px; background-color: #fff; }#header p { margin: 0em 0% 0em 1%; font-size: 85% } .breadcrumb { margin-left:140px; text-color: red; }#container { border: 2; margin: 0; max-width: 750px; margin-top:0px; background-color: #fff; border-top: 1px solid #708090; border-bottom: 1px solid #708090; }#nav { border: 1; margin: 0; padding-top:10px; padding-left:20px; width: 136px; w\idth:140px; margin:0px; background-color: #fff; float:left; } #content { border: 0; margin:0; max-width: 620px; margin-top:0; border-left: 1px solid #708090; background-color: #fff; float: left; }#footer { color: #fff; background: #666; border: 1; border-top: 1px solid #fff; margin: 0; padding: 15px 7px 7px 7px; width: 750px; clear: both; }#footer { \width: 750px; } /* for IE5/Win */#footer { w\idth: 746px; } /* for good browsers */#footer p { color: #fff; font-size: 0.9em; text-align: center; } My testing html <html><head><title> Plan a Holiday-home page</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="author" content="Romy Li" /><meta name="description" content="This is testing" /><meta name="keywords" content="all sorts" /><link rel="stylesheet" type="text/css" href="styLesheet.css" media="screen" /><style type="text/css" media="screen"></style></head><body><div id="header"><img src="images/banner2.jpg" width="760" height="75" alt="" /><p class="breadcrumb">Home > Contact</p></div><div id="container"> <div id="nav"><!-- #include file="menupage.htm" --> <div id="content"> <P> </P> <P>This is a lois content</P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> </div></div><div id="footer"> <p> my footer </p></div></body></html> [EDIT] added code box tag to encapsulate code - skemcin
  8. I am trying to create a page layout using DIV and CSS. It is a very basic layout containing 5 DIVs, as below :HeaderContainer with 2 DIVs, Menu and Content.FooterThe footer ended up disappeared under the container. How do I make the footer appears immediately after the container ?Thank you all..
  9. Romy Li

    page layout

    Thanks Justine, I have learnt a bit more very time.
  10. Romy Li

    page layout

    Hi Justinthanks for your feedback. I will try to use Div to format my pages in the new site. It is interesting to note a posting today about W3C uses table to format their webpages. I suppose years ago it was consider OK to do so and the trend has since changed. I also have a question about hte use of frames. Some website uses frames to format their navigation. It is much faster because the server does not need to reload everything. What are the disadvantages, other than not able to be bookmarked ? Does W3c recommends the use of frames ?Thanks again
  11. Romy Li

    PHP

    I was maintaining a webiste that has a page using PHP form email (a simple Comment form). A couple of weeks ago it was abused and the site was being used to send out spam emails. The ISP was blacklisted and therefore the page was renamed to stop the abuse. The ISP sent us this link to show us how the hacker could have done to the codes. http://securephp.damonkohler.com/index.php/Email_InjectionI know next to nothing about PHP. Would anybody help me by suggesting any simple fixes can be put in the simple codes of the 'Comment page' we have in our site please.I have not received any reply, maybe I should also list the codes that has been abused in here so that if you can see the problem of the code, I would appreciate it.------------------------------------------------------------------------------------------<?php$to = "Webmaster <XX.co.uk>";$email = $_POST['email'];$message = $_POST['message'];if (!isset($_POST['email'])) {?><body id="www-XX" onload="document.getElementById('email').focus()"><div id="container"><h1>Comment on the site</h1><p>Please use this form to comment / provide feedback on the website <strong><em>only</em></strong>. For any and all correspondence concerning the charity please use the email link provided at the bottom of every page of the site (including this <a href="#footer">one</a>).</p><form action="send_mail.php" method="post"><table summary=""> <tr> <td><p><label for="email">Your email address:</label></p></td> <td><input type="text" id="email" name="email" size="50" /></td> </tr> <tr> <td><p><label for="subject">Subject:</label></p></td> <td><input type="text" id="subject" name="subject" size="50" /></td> </tr></table><p><label for="message">Comments:</label><br /><textarea cols="54" rows="10" id="message" name="message"></textarea></p><p><input type="submit" value="Send" /></p></form></div> <!-- end of container div --></body></html><?php}elseif (empty($email) || empty($message)) { header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); ?><html><head><title>Error</title></head><body><h1>Error</h1><p>You've forgotten to enter either youremail address or your message. Please press the BACKbutton in your browser and try again. Thanks.</p></body></html> <?php}else { mail($to, "[HaH] " . $_POST["subject"], $message, "From: " . $email); echo "<html><head></head><body>Mail sent!<br />Click <a href=\"feedback.html\">here</a> to return.</body></html>";}?>
  12. Romy Li

    page layout

    I have set up a simple website using table to format all the pages. In the last few months I maintained a couple of websites for the local charity. They both used DIV to format the pages. I find it easy to use table because I can control the layout better. I remember reading it from somewhere that it is not a good practice to use table. I am going to set a new site and would like to hear your opinions. Thanks very much.
×
×
  • Create New...