Jump to content

xerox02

Members
  • Posts

    90
  • Joined

  • Last visited

    Never

Everything posted by xerox02

  1. I wanted to make it more organized CSS <style TYPE= "text/css"> #logo { position: absolute; left: 17px; } #footer { width: 100%; height: 44px; background-color: #193bac; color: #red; } #navi { height: 32px ; width: 100%; background-color: #193bac; color: white; font-family: arial; } #navihome { display: block; width: 82px; height: 32px; background: url("http://img84.imageshack.us/img84/7207/oneu.gif") no-repeat 0 0; position: fixed; left: 57px; } #navihome:hover { background-position: 0 -20px; } #navihome span { position: absolute; top: -999em; } #naviart { height: 32px ; width: 82px; position: absolute; left: 165px; background: url("http://img843.imageshack.us/img843/9916/twoo.gif") ; } #naviart:hover { background-position: 0 -95px; } #navimusic { height: 32px ; width: 82px; position: absolute; left: 273px; background: url("http://img148.imageshack.us/img148/3972/threer.gif") ; } #navimusic:hover { background-position: 0 -95px; } #navidance { height: 32px ; width: 82px; position: absolute; left: 381px; background: url("http://img573.imageshack.us/img573/6940/four.gif") ; } #navidance:hover { background-position: 0 -95px; } #navicontact { height: 32px ; width: 82px; position: absolute; left: 489px; background: url("http://img33.imageshack.us/img33/513/fiveu.gif") ; } #navicontact:hover { background-position: 0 -95px; } body { margin: 0; padding: 0; } </style> HTML <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> </head> <body> <div id="footer"> <div id="logo"> <img src="http://img638.imageshack.us/img638/3509/logo4jf.gif"> </div> </div> <div id= "navi"> <div id="navihome"> <a id="navihome" href="http://kian02.comlu.com/kian3.html" title="Home"><span>Home</span></a> </div> <div id="naviart"> </div> <div id="navimusic"> </div> <div id="navidance"> </div> <div id="navicontact"> </div> </div> </body> </html>
  2. Example Page: http://kian02.comlu.com/kian3.html I want the Navi to have mouseover and also be a link <style TYPE= "text/css"> #logo { position: absolute; left: 17px; } #footer { width: 100%; height: 44px; background-color: #193bac; color: #red; } #navi { height: 32px ; width: 100%; background-color: #193bac; color: white; font-family: arial; } #navihome { display: block; width: 82px; height: 32px; background: url("http://img84.imageshack.us/img84/7207/oneu.gif") no-repeat 0 0; position: fixed; left: 57px; } #navihome:hover { background-position: 0 -20px; } #navihome span { position: absolute; top: -999em; } #naviart { height: 32px ; width: 82px; position: absolute; left: 165px; background: url("http://img843.imageshack.us/img843/9916/twoo.gif") ; } #naviart:hover { background-position: 0 -95px; } #navimusic { height: 32px ; width: 82px; position: absolute; left: 273px; background: url("http://img148.imageshack.us/img148/3972/threer.gif") ; } #navimusic:hover { background-position: 0 -95px; } #navidance { height: 32px ; width: 82px; position: absolute; left: 381px; background: url("http://img573.imageshack.us/img573/6940/four.gif") ; } #navidance:hover { background-position: 0 -95px; } #navicontact { height: 32px ; width: 82px; position: absolute; left: 489px; background: url("http://img33.imageshack.us/img33/513/fiveu.gif") ; } #navicontact:hover { background-position: 0 -95px; } body { margin: 0; padding: 0; } </style> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> </head> <body> <div id="footer"> <div id="logo"> <img src="http://img638.imageshack.us/img638/3509/logo4jf.gif"> </div> </div> <div id= "navi"> <div id="navihome"> <a id="navihome" href="http://kian02.comlu.com/kian3.html" title="Home"><span>Home</span></a> </div> <div id="naviart"> </div> <div id="navimusic"> </div> <div id="navidance"> </div> <div id="navicontact"> </div> </div> </body> </html>
  3. Hi, I wanted to show people the beta of a site I've been working endlessly on. It would really awesome to get feedback All the features like the rating system and finding others with similar taste have not been implemented yet, but the core features of the site are pretty much done. The site basically is a site where you trade music links with other people with similar taste and rate what they give you. The more trades you do, the higher ranking you have on the site. I wanted to get feedback of what people like, don't like, what they would change and etc. This means a lot! And hopefully we can make something that's fun and useful! We will be adding updates and features often as we go! http://songfountain.com/
  4. So would this solve the problem. $sql="INSERT INTO `pendingquotes` (`quotes`, `email`, `name`) VALUES('".$_POST[quotes]."','".$_POST[email]."','".$_POST[name]."')"; $quote = $_POST['quotes']; mysql_real_escape_string($quote); $trimmed = trim($quote); $quote1 = $_POST['email']; mysql_real_escape_string($quote1); $trimmed = trim($quote1); $quote2 = $_POST['name']; mysql_real_escape_string($quote2); $trimmed = trim($quote2);
  5. hahahaha, thanks a lot.
  6. really? doesn't anonymous seem to misalign upward each time? Maybe it's google chrome.
  7. Why does id and submitted by mis-align more & more upwards each time in the code? http://excusesexcuses.net/excusestest.php
  8. http://excusesexcuses.net/ Viewing on Internet Explorer messing up everything lol and viewing in Safari has some alignment issues but I am fixing that as I speak.
  9. I insert HTML space code &nbsp and that's what seems to be messing it up.
  10. Yeah, show me man. What can I do to fix it!!!!!
  11. I trimmed the variable with trim(); Hopefully that fixed it.
  12. Thanks a lot man!!! I appreciate this. It's perfect, but it needs to lowered 3-5 px.
  13. Here is the part of my site that has access to my mysql tables http://excusesexcuses.net/submit1.php . I don't know why when I look at my table, I have some empty rows for no reason. It would seem impossible with the way my php is to have empty entries. When my program has a empty field, it WON't even go to mysql. If people want to see the code: <?php $con = mysql_connect("","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); require_once('recaptchalib.php'); $privatekey = ""; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $sql="INSERT INTO `pendingquotes` (`quotes`, `email`, `name`) VALUES('".$_POST[quotes]."','".$_POST[email]."','".$_POST[name]."')"; $quote = $_POST['quotes']; if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again."); } else { if(empty($quote)) { // Tell them they missed a required field echo 'You did not write a quote.'; mysql_close($con); } else { mysql_query($sql,$con) or die(mysql_error()); echo 'Thanks for your submission '; mysql_close($con); } } ?>
  14. Thanks man, you know what happened was, my html document had an extra 2 spaces in the text area for no reason. So it never looked empty for some reason. Thanks a lot you guys. This forum has taught me soo much.
  15. I tried this, but the problem is that when it's not empty it doesn't submit to database $sql="INSERT INTO pendingquotes (quotes, email, name) VALUES ('$_POST[quotes]','$_POST[email]','$_POST[name]')"; $_POST[quotes] = $quote; if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again."); } else { if (isset($quote)) { mysql_query($sql,$con); echo 'Thanks for your submission '; mysql_close($con); } else if(empty($quote)) { // Tell them they missed a required field echo 'You did not write a quote.'; } }
  16. I would think this would work, but it doesn't $sql="INSERT INTO pendingquotes (quotes, email, name) VALUES ('$_POST[quotes]','$_POST[email]','$_POST[name]')"; if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again."); } else { if(empty($_POST['quotes'])) { // Tell them they missed a required field echo 'missed'; } if (isset(($_POST['quotes'])) { mysql_query($sql,$con); echo 'Thanks for your submission '; mysql_close($con); } } It gives me this error. Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$' in /home/a1451858/public_html/submission.php on line 114 It shouldn't tho because the t_variable is definied at $sql.
  17. For some reason, this doesn't seem to know when it's empty
  18. Thanks a lot man, I can have it modify each field too.
  19. $con = mysql_connect("","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_database", $con); require_once('recaptchalib.php'); $privatekey = "private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again."); } else { $sql="INSERT INTO pendingquotes (quotes, email, name) VALUES ('$_POST[quotes]','$_POST[email]','$_POST[name]')"; mysql_query($sql,$con); echo 'Thanks for your submission '; mysql_close($con); }
  20. For some reason on my excuse submit ( http://excusesexcuses.net/submit1.php ) , I get a lot of empty rows in my mysql table. Is there a way I can automatically not accept empty entries or delete empty entries on table? Thanks a lot, Xerox02
  21. When I view this part of my website on my iphone http://excusesexcuses.net/excuses.php the (id) positioning is off, and the (submitted by) positioning is off. How can I fix this? This is extra, but when I view my home page of my website on internet explorer, it looks crazy. Is that normal? I've heard IE is just outdated. Thanks a lot, Xerox02
  22. Thanks a lot everyone.
×
×
  • 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.