Jump to content

Ninjakreborn

Members
  • Posts

    3,922
  • Joined

  • Last visited

Everything posted by Ninjakreborn

  1. Ok I think I get the point a little, so I can still use the same thing I am doing, I could take my current setup and just attribute them into error, I like this part [code]if (isset($_POST['send'])){     if (empty($_POST['name'])){     print('The name field has been left blank<br />');     }if (empty($_POST['emailaddress'])){     print('The Email Address field was left blank<br />');     }if (empty($_POST['verifyemail'])){     print('The Verify Email Field was left blank<br />');     }if ($_POST['emailaddress'] != $_POST['verifyemail']){     print('The Email Addresses do not match, please fix this<br />');     }if (empty($_POST['description'])){     print('The Description Field was left blank<br />');[/code] I like the way that looks, the way it operates and the way it functions, doing it one at a time, I know the code is longer, but it's funner, it helps me learn it faster, and understand this, before I start using arrays to do it, which I will later after I can do this blindly with no help. Right now what I want to know is with the error handling, what is it, what's the purpose, are you speaking of trapping all of the errors into an array, and printing them ALL out at the end, or is there another purpose, thanks.
  2. Ok, now I got the form field working, thanks the text-area works, and now I know how to do it, from now on should I ALWAYS leave off the parenthesis on echo, or echo and print, or what. I just need clarification for learning purposes. It's also doing something funny, when you go to the site, if you type something in description and click submit it submits it automatically. You can fill out the others, and click it it gives you error messages, but no matter what when you fill out description and click submit, it displays the message it is suppose to for confirmation, sends an email, and still validates and shows up the error messages, I am confused as to why this is happening, I didn't notice it until now. and at the part where you showed me to change those over to the longer forms, I tried that but it didn't work, can you show me an example in a form field.
  3. Sorry about that, line 63 is [code]echo("$_POST['description']");[/code] No it's still not displaying, and I had another suggestion about putting the form into an if-else statement, somehow and doing it that way is that possible, I will play around with and try to learn this error code thing, I am starting to think it's a better idea to do it on another page, is it easier that way. The headers I was using was setting the header variable to what I needed and then putting it into the mail like this Setting header [code]$from = "FunnyEmailForwards.com Contact";[/code] Putting it into the mail function [code]if (mail($to, $subject, $message, $From)){         print('Thank you for contacting us!<br />');         print('We will try and get back to you within 24 hours.<br />');         }else{         print('There was an error sending the message, please try again!<br />');         print('If it does not work the second time, please send an email directly to<br />');         print('<a href="mailto:businessman332211@hotmail.com">Here</a>');         }}         };[/code] and for some reason it's not changing it. also I noticed lately when I go to the page, type something in the description area, it sends the email and validates it, as soon as something enters into the description it sends the email, everytime I do it in another page, it always worked first thing, but now it's giving me issues, but I guess I am learning from it.
  4. Ok I have done 2 things. First, is there a way to make the form disappear after submission other than that, I want to avoid getting into something so deep I don't understand it yet, I don't understand at all the functionality of the error code, I need to get this down I think before I dig into that, I tried doing adjustments to the from field, to set the header, and I tried a weak attempt at getting the text area to repopulate but they both failed, the email is still giving me this wierd email address of the domain manager, but I needed it to say FunnyEmailForwards.com, I have to get this to work because I talked him into using forms instead of mailto links. Also I need to get the field to populate itself but that didn't work. The other thing is giving me an error here [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/all/funnyemailforwards/public_html/contactus.php on line 63 [/quote] [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Contact Us</title> </head> <body> <h3>Contact Us</h3> <p><a href="index.php" title="Return Home">Return Home</a></p> <p>If you need to contact us for any reason you can do so below.  We will try and respond within 24 hours.</p> <br /> <?php if (isset($_POST['send'])){     if (empty($_POST['name'])){     print('The name field has been left blank<br />');     }if (empty($_POST['emailaddress'])){     print('The Email Address field was left blank<br />');     }if (empty($_POST['verifyemail'])){     print('The Verify Email Field was left blank<br />');     }if ($_POST['emailaddress'] != $_POST['verifyemail']){     print('The Email Addresses do not match, please fix this<br />');     }if (empty($_POST['description'])){     print('The Description Field was left blank<br />');     }else {     $to = "businessman332211@hotmail.com";     $subject = "FunnyEmailForwards.com contact";     $name = $_POST['name'];     $emailaddress = $_POST['emailaddress'];     $verifyemail = $_POST['verifyemail'];     $description = $_POST['description'];     $from = "FunnyEmailForwards.com Contact";     $message = "     Name: {$name}     Email Address: {$emailaddress}     Verify Email: {$verifyemail}     What the person had to say:     {$description}     ";         if (mail($to, $subject, $message, $From)){         print('Thank you for contacting us!<br />');         print('We will try and get back to you within 24 hours.<br />');         }else{         print('There was an error sending the message, please try again!<br />');         print('If it does not work the second time, please send an email directly to<br />');         print('<a href="mailto:businessman332211@hotmail.com">Here</a>');         }}         };                ?> <form name="contact" id="contact" action="contactus.php" method="post"> <label for="name">Name:</label><br /> <input name="name" id="name" type="text" maxlength="80" value="<?=isset($_POST['name']) ? $_POST['name'] : ''?>"/><br /> <label for="emailaddress">Email Address:</label><br /> <input name="emailaddress" id="emailaddress" type="text" maxlength="80" value="<?=isset($_POST['emailaddress']) ? $_POST['emailaddress'] : ''?>"/><br /> <label for="verifyemail">Verify Email Address:</label><br /> <input name="verifyemail" id="verifyemail" type="text" maxlength="80" value="<?=isset($_POST['verifyemail']) ? $_POST['verifyemail'] : ''?>"/><br /> <label for="description">Message:</label><br /> <textarea name="description" id="description" cols="20" rows="7" /> <?php if (isset($_POST['description'])){ echo("$_POST['description']"); }; ?> </textarea><br /> <input name="send" id="send" type="submit" value="Contact Us!" /> <input name="reset" id="reset" type="reset" value="Clear Form" /> </form> </body> </html>[/code]
  5. How do I build up the error code, and the other question was, why is description not repopulating upon submit when it fails, it clears that one. I do understand headers, I just tried it though and it ignored my work.
  6. A few other things happened. That aren't working, for one I repopulated my text area field like you said but it's not repopulating, another thing is, how do I get it to remove the form when it submits all the way, or is it suppose to do that. Just the bottom text area, teh one with description, and the form stays there for some reason, and let's you submit really rapidly. I was also wondering, I figured out how to set the from address, but he wants the from field itself to say FunnyEmailForwards.com instead of an email address is this possible, to set a header as text instead of email, I tried but it doesn't register it, it still puts some wierd damon, at the website, whatever.
  7. Oh ok, that makes sense, I will redo it and tell you the parse area. When I change it and take that out I get [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Parse error: parse error, unexpected $ in /home/all/funnyemailforwards/public_html/contactus.php on line 66 [/quote] and that is on the line with nothing, for some reason that is way out all the way at the end of the document, pass the html, why is my php trying to read there? Actually I got it working, What I did was added that at the end instead of where it was.
  8. Ok, I got in the repopulation, it repopulates now, what I need to figure out is why that message is still displaying and for some reason it's emailing it to me automatically at the open of the page. I am going to see if I can break down and understand the repopulation so I can do it later from memory, any advice on the other would be appreciated too, thanks so far, I need to learn the repopulation too. I have to do that, or I get a parse error, it's because I have it wrapped in a bigger construct. The if at the top get's closed there, along with the end of the last if statement used in that segment.
  9. I made the changes, It didn't make the form disappear this time for some reason, but it still has the same thing, and I changed that with the form, I changed it to send instead of submit, and changed the variable too, where should I put printr should I replace all my current print statements with it. [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Contact Us</title> </head> <body> <h3>Contact Us</h3> <p><a href="index.php" title="Return Home">Return Home</a></p> <p>If you need to contact us for any reason you can do so below.  We will try and respond within 24 hours.</p> <br /> <?php if (isset($_POST['send'])){     if (empty($_POST['name'])){     print('The name field has been left blank<br />');     }if (empty($_POST['emailaddress'])){     print('The Email Address field was left blank<br />');     }if (empty($_POST['verifyemail'])){     print('The Verify Email Field was left blank<br />');     }if ($_POST['emailaddress'] != $_POST['verifyemail']){     print('The Email Addresses do not match, please fix this<br />');     }if (empty($_POST['description'])){     print('The Description Field was left blank<br />');     }}else {     $to = "businessman332211@hotmail.com";     $subject = "FunnyEmailForwards.com contact";     $name = $_POST['name'];     $emailaddress = $_POST['emailaddress'];     $verifyemail = $_POST['verifyemail'];     $description = $_POST['description'];     $from = "$emailaddress";     $message = "     Name: {$name}     Email Address: {$emailaddress}     Verify Email: {$verifyemail}     What the person had to say:     {$description}     ";         if (mail($to, $subject, $message, $From)){         print('Thank you for contacting us!<br />');         print('We will try and get back to you within 24 hours.<br />');         }else{         print('There was an error sending the message, please try again!<br />');         print('If it does not work the second time, please send an email directly to<br />');         print('<a href="mailto:businessman332211@hotmail.com">Here</a>');         }};                ?> <form name="contact" id="contact" action="contactus.php" method="post"> <label for="name">Name:</label><br /> <input name="name" id="name" type="text" maxlength="80" /><br /> <label for="emailaddress">Email Address:</label><br /> <input name="emailaddress" id="emailaddress" type="text" maxlength="80" /><br /> <label for="verifyemail">Verify Email Address:</label><br /> <input name="verifyemail" id="verifyemail" type="text" maxlength="80" /><br /> <label for="description">Message:</label><br /> <textarea name="description" id="description" cols="20" rows="7" /> </textarea><br /> <input name="send" id="send" type="submit" value="Contact Us!" /> <input name="reset" id="reset" type="reset" value="Clear Form" /> </form> </body> </html>[/code] See I did decide a few things, on forms where I am doing databasing, or handling more than one submit button or more than one form, I always want to do it on another page. But when I have some basic contact form, or something simple, I like the idea of having it on the same page, I know all of this is subject to opinion, so I thought through all of this, the thing I don't get also is when it's on another page repopulating the form fields isn't an issue, so why does it clear it when it's on the same page, when it's a different page they hit back and they are still there, they fix the errors and boom, here what happens is it removes itself, how do I repopulate the form fields, and why does it work like that.
  10. ok I will change those, the one question that is puzzling me though, before when I tried putting it above, after it finished validating the form below it dissapeared, and didn't work anymore
  11. Ok the url is [a href=\"http://www.funnyemailforwards.com/contactus.php\" target=\"_blank\"]page[/a] The problem is the everything is working great, but the bottom section where I am sending the mail, the message that is suppose to appear if it is sent, is displaying first thing, and emailing it as soon as the page opens, don't I have the control structure set up right, I didn't want to test each and every field individually, I wanted to test them all like this, and have it display all error messages it runs across, but this didn't work, I also tried with if, the else if, then else at the end but it only displayed one error at a time, and I am not ready to start learning how to create an array with them and do it that way, I am learning very fast, getting better and better, and forcing myself into difficult situations to learn, but I am learning, and I don't want to rush that, until I have 100% understanding over control structures this is where my problem currently lies. [code]<?php if (isset($_POST['submit'])){     if (empty($_POST['name'])){     print('The name field has been left blank<br />');     }if (empty($_POST['emailaddress'])){     print('The Email Address field was left blank<br />');     }if (empty($_POST['verifyemail'])){     print('The Verify Email Field was left blank<br />');     }if ($_POST['emailaddress'] != $_POST['verifyemail']){     print('The Email Addresses do not match, please fix this<br />');     }if (empty($_POST['description'])){     print('The Description Field was left blank<br />');     }}else {     $to = "businessman332211@hotmail.com";     $subject = "FunnyEmailForwards.com contact";     $name = $_POST['name'];     $emailaddress = $_POST['emailaddress'];     $verifyemail = $_POST['verifyemail'];     $description = $_POST['description'];     $from = "$emailaddress";     $message = "     Name: {$name}     Email Address: {$emailaddress}     Verify Email: {$verifyemail}     What the person had to say:     {$description}     ";         if (mail($to, $subject, $message, $From)){         print('Thank you for contacting us!<br />');         print('We will try and get back to you within 24 hours.<br />');         }else{         print('There was an error sending the message, please try again!<br />');         print('If it does not work the second time, please send an email directly to<br />');         print('<a href="mailto:businessman332211@hotmail.com">Here</a>');         }};                ?>[/code]
  12. I fixed the main problem, but I like this advice, I will keep these practices in mind when working on future projects.
  13. At the top I figured the cause for what was making it do that in firefox, what I did was lowered the margin on the right div, but I can't have it like that, the client wanted it spaced, I need it spaced, but still working in firefox, does anyone have any advice on this, I don't know what you meant by the way about the unordered list, if you mean those bottom 6 sections, I could, but then I have the blue line, He wants that there, and after fighting with it for 2 hours, that is the only thing I could figure out, I am not really on a deadline on this, but I was hoping not to encounter these problems because I was on other projects, if anyone catches anything I missed, or has any advice as I fight with this it would be greatly appreciated.
  14. I will fiddle with that, it's just I am so confused why it went haywire in opera, even in firefox it's not perfect bu hey atleast it looks presentable. I will have to see if I can fix this all day today, any more advice would be greatly appreciated.
  15. Well for one check it in opera, that is the main issue, it's horrible in Opera. In firefox in general, I needed to try and get the search for something funny section back up there beside te other one, it doesn't look right down below it. Those are the main things, that and opera.
  16. [b]SOLVED- HA HA HA, I figured it out, that was cool. I was getting frustrated, I went through my validation, fixed my xhtml like usual, dug into my css, and found the / symbol after a comment that wasn't supposed to be there, I had put it twice, I fixed that, and when I rechecked in opera, the ENTIRE site snapped into place, went back into perfect formation the way it should have, that was the coolest thing that ever happened, THUS another reason to ALWAYS validate your materials.[/b] I can't figure out what's wrong with this, can someone help me figure out how to fix this. [a href=\"http://www.funnyemailforwards.com/\" target=\"_blank\"]Funny Email Forwards[/a] Here is my issue, look at it in IE, it looks great, then when you look at it in all the other browsers, it looks horrible, I wasn't expecting compatibility issues with just a simple layout, any advice, or ideas would be greatly appreciated. My XHTML, CSS is below. [code] body /* This part styles the body, and prepares it for the content */ { font-family:Arial, Helvetica, sans-serif; /*this sets the font type*/ font-size:15px; /*This sets the general setup of the text on the site*/ } h3 { font-weight:bold; text-decoration:underline; } img /* this removes borders around linked images */ { border:none; } /*Everything in this section below here controls the form field boxes, this allows them to all be spaces properly and make them all look even from the form names */ #type { margin-left:30px; } #name { margin-left:80px; } #keywords { margin-left:122px; } #file { margin-left:55px; } /* End working with form fields */ /* Below starts working with the header, situating the text, and the images for the header, and getting it all aligned and set up properly */ #header { padding-left:10px; padding-top:10px; } #headertext { padding-left:15px; text-indent:0px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-weight:bold; } #headerbelow { padding-left:20px; } /* End header modification */ /*Everything in the following sections lays the foundation for the main body set up.  What happens here is I set the 3 main sections in the middle, below the header.  I wrapped them in something, and put them all in a container, and working with all 3 I set them up to style correctly, and made it easier to make any types of modifications on any of the 3 elements in the containment div */ #containleftright { padding:0px; width:900px; margin-top:20px; } #leftdiv { float:left; } #middlediv { font-weight:bold; float:left; margin-top:30px; } #rightdiv { float:left; margin-top:4px; margin-left:40px; } /*end structuring main sections */\ /* everything in this section is going to set up the way the stuff looks at the bottom, and how it is all organized. This whole part may seem confusing, what it does to wrap the entire section at the bottom in 1 div, then it has 6 different sections for new divs, I made it this way so someone could very easily add in more rows if necessary with only having to change around a few tag names, and working a little bit adding some to the css.  This way also allows it to wrap around as it minimizes, it just adds more rows for people with smaller browser windows. */ #wrapmiddle { width:900px; clear:both; } #upperleft { float:left; } #uppermid { float:left; } #upperright { float:left; } #lowerleft { float:left; } #lowermid { float:left; } #lowerright { float:left; } #specialheader1 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:300px; } #specialheader2 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:300px; } #specialheader3 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:300px; } /* end bottom structuralization */ /* This below here is goign to kill some of the obnoxious parts out of the lists, removing the bullets, pulling away the padding on the left hand side ex cetera. */ li { list-style-type:none; margin-left:0px; padding-left:0px; } /* end the part with messing around with the lists */ /* this is just random styling, and doing things here and there to the general structure of the site */ #bottomwrap { clear:both; text-align:center; } #bottomnav li { display: inline; list-style-type: none; padding-right: 20px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; } #copyright { margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; } #directory { margin-bottom:0px; }[/code] [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="funnyemails.css" /> <meta name="Description" content="If you have a funny email, feel free to put it into our database, to send to all the people signed up to recieve funny emails" /> <meta name="Keywords" content="funny, emails, email, fowards, joke, video, song, poem, picture, yellow pages, services" /> <meta name="author" content="A service of Yellow Pages Online" /> <title>Funny Email Forwards</title> </head> <body> <div id="header"> <img src="images/logo.gif" /><br /> <p id="headertext">The web's directory of funny Email forwards<br /> <a href="http://www.yellowpagesservices.com" id="headerbelow" title="The Yellow Pages Services" target="_blank"><img src="images/ypol.gif" /></a></p> </div> <div id="containleftright"> <div id="leftdiv"> <h3>Add Something Funny:</h3> <form name="submitinformation" id="submitinformation" action="post"> <label for="type">What Type of Funny is it:</label> <select tabindex="1"name="type" id="type"> <option>Video</option> <option>Picture</option> <option selected="selected">Joke</option> <option>Song</option> <option>Poem</option> <option>Story</option> </select><br /> <label for="name">Name the Funny:</label> <input tabindex="2" name="name" id="name" type="text" maxlength="80" /><br /> <label for="keywords"><a href="keywords.htm">Keywords:</a></label> <input tabindex="3" name="keywords" id="keywords" type="text" maxlength="80" /><br /> <label for="file">Upload your file here:</label> <input tabindex="4" name="file" id="file" type="file" /><br /> <input tabindex="5" name="submit" id="submit" type="submit" value="Do It!" /> </form> </div> <div id="middlediv"> <p>OR</p> </div> <div id="rightdiv"> <h3>Search For Something Funny:</h3> <form name="search" id="search"> <label for="searchfield">What would you like to search for?</label> <input tabindex="6" name="searchfield" id="searchfield" type="text" size="33" maxlength="80" /><br /> <input tabindex="7" name="search" id="search" type="submit" value="Do It!" /> </form> </div> </div> <div id="wrapmiddle"> <h3 id="directory">Directory of Listings:</h3> <div id="upperleft"> <h3 id="specialheader1">VIDEOS</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="uppermid"> <h3 id="specialheader2">PICTURES</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="upperright"> <h3 id="specialheader3">JOKES</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowerleft"> <h3 id="specialheader1">SONG</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowermid"> <h3 id="specialheader2">POEM</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowerright"> <h3 id="specialheader3">STORY</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> </div> <div id="bottomwrap"> <ul id="bottomnav"> <li><a href="about.htm" tabindex="8" title="The About Page">About!</a></li> <li><a href="signup.php" tabindex="9" title="Sign up for the newsletter">Sign Up!</a></li> <li><a href="contactus.php" tabindex="10" title="Contact Us">Contact Us!</a></li> </ul> <p>Copyright 2000-2006 FunnyEmailFowards.com a service of YellowPages Online.  All Rights Reserved.</p> </div> </body> </html>[/code]
  17. That's what it was, thanks I had forgotten about that, it had been so long since I did that, I appreciate it, thanks.
  18. [b]SOLVED-The problem has been totally solved, thanks for all the help[/b] I need help figuring out 2 things, here is my coding for the html, css, follow by link to the site, and what I am trying to do I can't figure out. [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="funnyemails.css" /> <meta name="Description" content="If you have a funny email, feel free to put it into our database, to send to all the people signed up to recieve funny emails" /> <meta name="Keywords" content="funny, emails, email, fowards, joke, video, song, poem, picture, yellow pages, services" /> <meta name="author" content="A service of Yellow Pages Online" /> <title>Funny Email Forwards</title> </head> <body> <div id="header"> <img src="images/logo.gif" /><br /> <p id="headertext">The web's directory of funny Email forwards<br /> <a href="http://www.yellowpagesservices.com" id="headerbelow" title="The Yellow Pages Services" target="_blank"><img src="images/ypol.gif" /></a></p> </div> <div id="containleftright"> <div id="leftdiv"> <h3>Add Something Funny:</h3> <form name="submitinformation" id="submitinformation" action="post"> <label for="type">What Type of Funny is it:</label> <select tabindex="1"name="type" id="type"> <option>Video</option> <option>Picture</option> <option selected="selected">Joke</option> <option>Song</option> <option>Poem</option> <option>Story</option> </select><br /> <label for="name">Name the Funny:</label> <input tabindex="2" name="name" id="name" type="text" maxlength="80" /><br /> <label for="keywords"><a href="keywords.htm">Keywords:</a></label> <input tabindex="3" name="keywords" id="keywords" type="text" maxlength="80" /><br /> <label for="file">Upload your file here:</label> <input tabindex="4" name="file" id="file" type="file" /><br /> <input tabindex="5" name="submit" id="submit" type="submit" value="Do It!" /> </form> </div> <div id="middlediv"> <p>OR</p> </div> <div id="rightdiv"> <h3>Search For Something Funny:</h3> <form name="search" id="search"> <label for="searchfield">What would you like to search for?</label> <input tabindex="6" name="searchfield" id="searchfield" type="text" size="33" maxlength="80" /><br /> <input tabindex="7" name="search" id="search" type="submit" value="Do It!" /> </form> </div> </div> <div id="wrapbottom"> <h3 id="directory">Directory of Listings:</h3> <div id="upperleft"> <h3 id="specialheader1">VIDEOS</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="uppermid"> <h3 id="specialheader2">PICTURES</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="upperright"> <h3 id="specialheader3">JOKES</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowerleft"> <h3 id="specialheader1">SONG</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowermid"> <h3 id="specialheader2">POEM</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> <div id="lowerright"> <h3 id="specialheader3">STORY</h3> <ul> <li>Link Number one will go here</li> <li>Link Number two will go here</li> <li>Link Number three will go here</li> </ul> </div> </div> <div id="copyright"> <ul id="bottomnav"> <li><a href="about.htm" tabindex="8" title="The About Page">About!</a></li> <li><a href="signup.php" tabindex="9" title="Sign up for the newsletter">Sign Up!</a></li> <li><a href="contactus.php" tabindex="10" title="Contact Us">Contact Us!</a></li> </ul> <p>copyright 2000-2006 funnyemailfowards.com a service of yellowpages online.  All rights reserved.</p> </div> </body> </html>[/code] [code]body /* This part styles the body, and prepares it for the content */ { margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; font-family:Arial, Helvetica, sans-serif; /*this sets the font type*/ font-size:15px; /*This sets the general setup of the text on the site*/ } h3 { font-weight:bold; text-decoration:underline; } img /* this removes borders around linked images */ { border:none; } /*Everything in this section below here controls the form field boxes, this allows them to all be spaces properly and make them all look even from the form names */ #type { margin-left:50px; } #name { margin-left:100px; } #keywords { margin-left:142px; } #file { margin-left:75px; } /* End working with form fields */ /* Below starts working with the header, situating the text, and the images for the header, and getting it all aligned and set up properly */ #header { padding-left:10px; padding-top:10px; } #headertext { padding-left:15px; text-indent:0px; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-weight:bold; } #headerbelow { padding-left:20px; } /* End header modification */ /*Everything in the following sections lays the foundation for the main body set up.  What happens here is I set the 3 main sections in the middle, below the header.  I wrapped them in something, and put them all in a container, and working with all 3 I set them up to style correctly, and made it easier to make any types of modifications on any of the 3 elements in the containment div */ #containleftright { padding:0px; width:900px; margin-top:20px; margin-left:8px; } #leftdiv { float:left; margin-right:4px; } #middlediv { font-weight:bold; float:left; margin-right:80px; margin-top:30px; } #rightdiv { float:left; margin-top:4px; } /*end structuring main sections */\ /* everything in this section is going to set up the way the stuff looks at the bottom, and how it is all organized. This whole part may seem confusing, what it does to wrap the entire section at the bottom in 1 div, then it has 6 different sections for new divs, I made it this way so someone could very easily add in more rows if necessary with only having to change around a few tag names, and working a little bit adding some to the css.  This way also allows it to wrap around as it minimizes, it just adds more rows for people with smaller browser windows. */ #wrapbottom { width:900px; clear:both; } #upperleft { float:left; } #uppermid { float:left; } #upperright { float:left; } #lowerleft { float:left; } #lowermid { float:left; } #lowerright { float:left; } #specialheader1 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:300px; } #specialheader2 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:300px; } #specialheader3 { background-color:#000099; color:#FFFFFF; text-decoration:none; font-size:1em; width:400px; } /* end bottom structuralization */ /* This below here is goign to kill some of the obnoxious parts out of the lists, removing the bullets, pulling away the padding on the left hand side ex cetera. */ li { list-style-type:none; margin-left:0px; padding-left:0px; } /* end the part with messing around with the lists */ /* this is just random styling, and doing things here and there to the general structure of the site */ #copyright { clear:both; } #bottomnav li { display: inline; list-style-type: none; padding-right: 20px; } #directory { margin-bottom:0px; }[/code] [a href=\"http://www.funnyemailforwards.com/\" target=\"_blank\"]Website I am working on[/a] Ok Here are the things I am trying to do, I just can't figure out, at the bottom, I created a list with navigation, I can't get it to center, or the thing below it, I tried text-align:center in css, I rely mostly on CSS, and I REALLY don't want to use html to position, I want to be able to do this in, CSS, is it possible for me to find a way to get those centered. ANY help I would be greatly appreciative.
  19. [b]SOLVED-thanks for all the help.[/b] I am trying to set up a longer text field here. I can't get it to work properly, I was thinking of using text-area but I want to avoid that because it will always show a scroll bar there, and I didn't want that. What I wanted was to just increase the length of it, let me know if you have any advice. [a href=\"http://www.funnyemailforwards.com/\" target=\"_blank\"]Website[/a] it's at the top right hand corder, where it asks to search, my client is wanting me to be able to increase the length of the text area, how do I do that.
  20. I had added the clears, on both and it worked, finally, and no Idon't use absolute relative positioning anymore.
  21. I got my entire thing done, but I need to do one thing, I am trying to completely set up to where I can have the copyright permanently at the bottom, or to stay at the bottom, what happens, is when I minimize the window it jumps up into the middle of the text, is there a way to glue it at the bottom.
  22. it's just that like 4 developers I talked to said it could be done in a weekend, if they really wanted. It confused me, at first I knew what was involved or thought, I was thinking around 20k, for about 4-5 weeks worth of work, then my client said I was crazy and his developer could code it in a weekend, then I asked some others they said 3 weeks was a possibility, and a few others said it was fairly easy, I got confused so I told my client to screw himself, and I dropped the project. By what I can gather he was trying to rip me off.
  23. Ok sounds good I will set that up, and I can just have it remove it from the database automatically if he declines.
  24. I have will have a 3 column css solution by the end of the week if it kills me, I will let you know.
×
×
  • 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.