Jump to content

Landslyde

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Landslyde

  1. beermantm: Thanks. I'll take a look at what you offered and see what I can come up with. Much appreciated.
  2. I made a navbar (I guess that's what it's called) for my website. Horizontal. It has the look I want and it works. But I have client-related pages that will fill their respective navbars up fast, making them crowded, probably even falling off the right side of the pages. So I need to make my existing format into a dropdown type. I tried to integrate tutorial code I found online into making this, with bad results. The navbar background color (#000) grew in height when a submenu item dropped down, instead of that menu item alone being #000. Would someone look at my code and get me headed in the right direction with the current style I have? <div id="navigation"> <ul> <li><a href="index.html" class="active"><span>Home</span></a></li> <li><a href="about.html"><span>About Us</span></a></li> <li><a href="services.html"><span>Services</span></a></li> <li><a href="register.php"><span>Register</span></a></li> <li><a href="client.php"><span>Client Area</span></a></li> <li><a href="contact.php"><span>Contact Us</span></a></li> </ul> </div> #navigation { font-family: ambleregular; font-size: 1.1em; float: left; width: 100%; background-color: #000; } #navigation ul { margin: 0; padding-left: 62px; text-transform: uppercase; } #navigation ul li { list-style-type: none; display: inline; } #navigation li a { display: block; float: left; padding: 5px 10px; color: #fff; text-decoration: none; border-right: 1px solid #fff; } #navigation li a.active { display: block; float: left; padding: 5px 10px; color: #fff; background: #696969; text-decoration: none; border-right: 1px solid #fff; } #navigation li a:hover { background: #2F4F4F; } #navigation li a:active { background: #C0C0C0; } That's what I'm using. Thanks for any and all help.
  3. Great information. Thank you, Ben. I see that I was making my mistake by using "value = " in echoing the textarea variable. Seems that value isn't used with textarea at all. Who'd've thunk it?
  4. And this is an issue because if the user has made a mistake on the form and has to make a correction, he/she also now has to retype everything in the textarea again before re-submission. And the textarea's the only input device that loses its input. Input boxes are fine, as are the selected select options. Is this a natural behavior? Is there a way around it?
  5. Is this considered "spaces" between those tags? <p> <label for="details" class="label">case details:</label><br> <textarea class="txtarea" rows="14" cols="50" name="details" placeholder="Case Details" value="<?php if (isset($_POST['details'])) { echo $details; } ?>"> </textarea> <span class="error"><?php echo $detailsErr;?></span> </p><br> UPDATE: I wld have never thought that butting the tags together cld make such a difference, but your suggestion was the ticket. Many thanks, Ben. Very much appreciated.
  6. I have a form with a textarea. Every time I load the page, I can't see the placeholder text because blank spaces magically appear in the textarea box. I have to click inside it and drag my mouse to capture all the blank spaces to delete them out. This happens on every textarea box I set up. All my input boxes show their placeholder text except this one. Just looks kinda tashy. Is this a known issue with textarea boxes? Is there something I can do to make sure the box is cleared out upon loading my form?
  7. Hello Forum: I'm just now trying to learn PHP and read that using PDO was a better way to utilize online databases. I have my Registration page completed, storing client info in a MySQL db, all done using PDO. However, I'm having a little trouble with the Login page. I don't know if I'm using the PDO stuff the right way. $stmt = $db->prepare('SELECT (username, password) FROM members WHERE (username) LIKE ? AND (password) LIKE ?'); $stmt->bindValue(1, "%$uname%", PDO::PARAM_STR); $stmt->bindValue(2, "%$pwd1%", PDO::PARAM_STR); $stmt->execute(); echo $affected_rows = $stmt->rowCount(); I'm not sure if I have the bindValue statements right, and I'm only assuming (hence the echo statement) that, if this is a valid username and password, one row will be affected. Like I said, I'm new to PHP, and this is my second day. So I imagine I have this code all wrong. Can someone set me on the right track? Much appreciated. ~Landslyde
×
×
  • Create New...