Jump to content

johne281

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

johne281's Achievements

Member

Member (2/5)

0

Reputation

  1. ok that didnt work. Maybe i need to be more specific. There is a content div, with 3 column divs inside that. The center column div is the content div. Then there is a div inside the center div specifically for the content.The footer div is coming up to where the bottom of the content div is. The content div is holding the left and right column divs in place as they were, but the center div is longer on this page than on others. So basically the footer is behaving as if the center div (actually the content div inside the center div) was a regular length.
  2. Hi I have a 3 column layout with a footer. All the divs are floated to the left. On some of the pages the content in the center div is very long and when it is displays the footer is floating on top of part of the centerbar. How can i get the footer to stay below everything else?
  3. Hi. I am making a section and I need an area to type text that will expand depending on how much text I am putting in the div. It has a fixed width but I am using it as a class so I need the height to vary. Any solutions? Most Effecient solution?
  4. Thanks a million. That worked like a charm.
  5. Hi i input this code: <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <?php echo "<p>Order processed at ".date('H:i, js F Y'). "</p>"; ?> </body> </html> Everything came out ok except the "s" part. It says the 217 of August instead of the 2nd of August. Do you know what would cause such an error?
  6. You are da bomb. In the video he put the php code inside the html. Do you know why it works for him and not for me?
  7. Hi guys. I am learning php and I am getting this error message while following a tutorial video. Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\vid\11\cookies.php:6) in C:\xampp\htdocs\vid\11\cookies.php on line 6 Here is the code <html> <head> <title>Cookies</title> </head> <body> <?php setcookie('test', 45, time()+(60*60*24*7)); ?> </body> </html>
  8. Hi I am working on learning user defined functions. What is the definiton of an argument?
  9. OK. Thanks a lot guys ( and gals). This clears up a lot and will help my syntax fit standards better. Keep up all the good work .
  10. Can someone please explain to me what curly brackets do and when is the best time to use them. I am following a tutorial video and he uses curly brackets in the video quite a bit. When I googled for the answer i find that they don't seem to be necessary in most of the code he uses them in. If they are not necessary then what is their use?
  11. thank you kind sir/madam. Problem solved
  12. Here is the code for the order form. <html> <head><title>Bob's Auto Parts</title></head> <body> <form action="processorder.php" method="post"> <table border="0"> <tr bgcolor="#cccccc"> <td width="150">Item</td> <td width="15">Quantity</td> </tr> <tr> <td>Tires</td> <td align="center"><input type="text" name="tireqty" size="3" maxlength="3" /></td> </tr> <tr> <td>Oil</td> <td align="center"><input type="text" name="oilqty" size="3" maxlength="3" /></td> </tr> <tr> <td>Spark Plugs</td> <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /></td> </tr> <tr> <td>How did you find Bob's?</td> <td><select name="find"> <option value = "a">I'm a regular customer</option> <option value = "b">TV advertising</option> <option value = "c">Phone directory</option> <option value = "d">Word of mouth</option> </select> </td> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="Submit Order" /></td> </tr> </table> </form> </body> </html>
  13. Hi I am learning php and i have a problem. The code i have written so far is not displaying. The title is visible at the top of the page so i know it is reading the file but nothing displays on the page itself. Here is my code: <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <?php //create short variable names $tireqty = $_POST('tireqty'); $oilqty = $_POST('oilqty'); $sparkqty = $_POST('sparkqty') ?> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <?php echo "<p>Order processed at ".date('H:i, js FY')."</p>"; echo '<p>Your order is as follows: </p>'; echo $tireqty.' tires<br/>'; echo $oilqty.' bottles of oil<br/>'; echo $sparkqty. ' spark plugs<br/>' ?> </body> </html> It is linked to an order form and everything was working fine earlier. But i dont know whats going on now,
  14. <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <?php echo '<p>Order processed.</p>'; ?> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.