Jump to content

johne281

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by johne281

  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>
  15. hi. I got a book teaching me php and here is my problem. I am entering the following 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.</p>'; ?> </body> </html> It is displaying everything fine except in the browser it also shows '; ?> under the words Order processed. What am I doing wrong?
  16. Ok I realized that it is just not diplaying .php files correctly. I created a basic .html file and it is displaying just fine. but the rest of my (extremely simple) .php files are displaying a blank page. The title does appear at the top of the browser so I know it is at least recognizing the files.
  17. Hi I am using WAMP, Firefox, and Notepad++ to learn php. My problem is that the server has trouble displaying the code I am typing sometimes. I am following some video tutorials and I have used the following bits of code. <html> <head> <title>Hello World</title> </head> <body> <?php echo "Hello World!"; ?> <br/> </body> </html> <html> <head> <title>Variables</title> </head> <body> <?php $var1 = 10; echo $var1; ?> </body> </html> They work fine sometimes and other times it displays a blank document with the correct title for the page. What would cause this issue. The issue started with the first bit of code. I turned WAMP off and then I turned it back on and it started working fine. What could be the cause? Please help.
  18. Hey guys I just restarted WAMP and it is working fine now. For a minute there it wouldnt even display my phpinfo file. Thats when I restarted. What would cause problems like this? Thanks so much for all your help so far. You will be seeing more from me I'm sure.
  19. Hmmm. I am using wamp locally and it is saved as .php. Where can I check to make sure my server is set up correct? Thanks so much for your help
  20. Hi. I have learned html and css and now i am learning php and mysql. I am following some video tutorials and he wants me to create a file called helloworld.php with the following code: <html> <head> <title>Hello World</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> I have done that and when i view the file in a browser it is a blank document named Hello World. I have done this part before and it worked fine. What am i doing wrong now? Please help. This is so frustrating. Im sure it is just me overlooking something minor. Any help would be appreciated.
×
×
  • 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.