Jump to content

dalawh

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by dalawh

  1. Can you be a little more specific? So I will need two images: a check and unchecked checkbox? So there is no way to make them custom without images?
  2. Thanks a lot. Everything solved
  3. Is there anyway to make the edges curved as opposed to being sharp? When I say edges, I mean the edge of a div, not a checkbox. Can you style a checkbox? Like change the color of the checkbox to something as opposed to its normal white background. I only want the checkbox to change color and not the whole input. The two questions above are not related.
  4. Yes and yes, I believe.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><head><title>TITLE</title><link rel="stylesheet" type="text/css" href="ToSstylesheet.css"/><meta name="description" content="..."/><script type="text/javascript" src="ToSScript.js"></script></head><html><body> <div id="container"> <div id="header"> <img src="images/logo.png" alt="dalawh"/> </div> <br /> <div id="title"><h3>Header</h3></div> <div id="content_body"> <div id="content_text"> <br /> <textarea>BLAH BLAH </textarea readonly="readonly"> <br /> <form name="ToSForm" action="ToS.php" onsubmit="return validateForm()" method="post"> First Name: <input type="text" name="first" /><br /> Last Name: <input type="text" name="last" /><br /> <input type="checkbox" name="ToS1" value="ToS1" onclick="showSubmit()" />Boo<br /> <input type="checkbox" name="ToS2" value="ToS2" onclick="showSubmit()" />Boo<br /> <input type="checkbox" name="ToS3" value="ToS3" onclick="showSubmit()" />Boo<br /> <div id="enter"></div><br /> </form> </div> </div> </div> <br /> <footer> FOOTER </footer></body></html> ToSstylesheet.css html{height: 100%;}body{ /* General background */background-color:#4281BC;height: 100%;margin:0px auto;}form{background-color:#FFFFFF;width:90%;text-align:left;margin:0px auto;}h3{color:#FFFFFF;padding:2px 10px;margin:0px auto;}textarea{background-color:#F6F6F6;width:90%;height:200px;padding:10px;margin:0px auto;}footer{background-color:#204066;text-align:right;height: 4em;padding:10px;}#header{ /* Logo */margin:0px auto;}#container{min-height: 100%;height: auto !important;height: 100%;margin:0px auto -4em;}#title{background-color:#204066;width:80%;margin:0px auto;}#content_body{width:80%;margin:0px auto;}#content_text{background-color:#FFFFFF;text-align:center;margin:0px auto;}#enter{background-color:#FFFFFF;width:90%;text-align:center;margin:0px auto;} Did I do anything wrong?
  5. Not sure if I am doing it wrong, but no matter how small the page is, it always goes over a screen (meaning their is a scroll bar).
  6. That only works if your page is bigger than the screen. If the content fits in the screen area, that div will float to the middle/top. Does that stretch the page so that it is always at least the size of the screen causing the footer to always be at the bottom?
  7. I think there has been a misunderstanding. I am looking for something that stays at the bottom of the page. I do know how to create divs. I don't know how to make stay at the bottom.
  8. Is don't know how to do that. Do you?
  9. How do I make something appear at the bottom most parts of the page? What I mean is if I wanted to add a footer, I would want it to be at the bottom at all times no matter how the page is changing. I was wondering how I would align something in the center. Like if I wanted to align a div or table in the center, but not the text itself. I know I can use text-align:center, but that just seems weird and I tried align:center, but I am not sure if that is right.
  10. Oh, that makes more sense. Thanks for explaining this.
  11. dalawh

    Syntax for PHP files

    This is exactly what I needed. Thanks for explaining it. I must of missed that part somewhere.
  12. dalawh

    Cookies

    Oh okay. Thanks for explaining this. Any way I can close this thread?
  13. According to PHP tutorial on cookies, the setcookie() method only allows up to 5 parameters, so it is predefined as in, it must have no more than those 5 parameters. In the JavaScript tutorial, I didn't see the mention of parameters, you just kind of defined it to your liking since the the function that creates the cookie is made by each person. So does that mean that cookies can only have up to 5 values, which are name, value, expire, path, and domain? If they can have more than that, what else can they have?
  14. dalawh

    Cookies

    So all values in a cookie are encoded? Only the values and not the variables?
  15. dalawh

    Syntax for PHP files

    If I misunderstood what you wrote, please correct me. I am going to have to disagree with you, a HTML file can execute PHP code without itself, being a PHP file. It just has to include the "<?php ?>" to indicate that it is PHP. When you said: You are completely wrong... an HTML file that include php and html code will execute... http://www.w3schools.com/php/php_syntax.asp That was pretty basic. I am not making a web application. I am creating a site and I notice some sites are all php files rather than html files, so I was just curious, which was better to use.
  16. In JavaScript, http://www.w3schools.com/js/js_cookies.asp, you can manually define your own cookies when you create them, but in PHP, http://www.w3schools.com/php/php_cookies.asp, they are predefined. JS allows you to choose your content, but PHP only allows the cookie to have the predefined parameters. Since you said it is all the same, does that mean a cookie can have anything in it just like the JS version, but the PHP version keeps it simple? When you create and search a cookie using PHP, is the cookie page/file similar to the JavaScript, where it is varName = varValue; varName2 = varValue2; etc?
  17. dalawh

    Syntax for PHP files

    I know that, but is it better to have...PHP file that include php code and html codeorHTML file that include php code and html code After you answer the above, I assume it is always better to have the code in its respective file and then include it right? What I mean is if you have a html file, it is better to include a php file rather than have the php code in the html file.
  18. Will the PHP and JavaScript save to the same file for the cookie or different ones? The reason I ask this is when I read the JavaScript tutorial on cookies, it seems you define your own cookie and search method, but in the PHP tutorial, everything seems to be predefined. So they will be different.
  19. dalawh

    Syntax for PHP files

    Oh okay. Thanks. Thanks for explaining this further. Is it better to use php files that include both php and html or html files that include both php and html files?
  20. dalawh

    Syntax for PHP files

    What if it was a html page that had the php include, "<?php include 'header.php'; ?>", will that php file require the "<?php ?>"?
  21. dalawh

    Syntax for PHP files

    What you are saying is that if I want to use html in a php file, I will need to echo all the html code inside a single quote? Also, does the echo print the code to screen or does it go to the server? I want to be more specific:If I had an html and php file, the html would require "<?php include 'header.php'; ?>" in order to get the php file on the html page, but does the php page itself require the "<?php ?>"? If I only had the php file, would I need the <?php ?>"?
  22. Are they the same or are they different?
  23. dalawh

    Cookies

    So does anyone know what "unescape(y)" does?
  24. I know the syntax is "<?php ?>" if you want php in a html file, but if it is a php file, do we need the the "<?php ?>"?
  25. dalawh

    Cookies

    Oh okay. Makes much more sense. Thanks for explaining this. Time to move on to PHP.
×
×
  • Create New...