Jump to content

Cod-nes

Members
  • Content Count

    209
  • Joined

  • Last visited

Everything posted by Cod-nes

  1. I keep getting a Internal Server Error message when I try to password protect a folder using .htaccess. Here is my codes. What am I doing wrong? C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/www/.htaccessAuthUserFile C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/.htpasswdAuthType BasicAuthName "My Secret Folder"Require valid-user C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/.htpasswdtest:cOYEWO52hnJoc OS: Windows XpServer: MoWeS 2.0.3Apache/2.2.11 (Win32) PHP/5.3.5 Server
  2. I don't know what's wrong with my RSS. Can anyone help me?http://thelostwaters.com/rss.php
  3. The popup creates itself when it isn't opened and act='close'. Is there a way to make that so it won't open?
  4. I'm trying to get the value for radios using JavaScript but I keep getting undefined values. >.< What am I doing wrong? function checka() { var a = document.seaform.searadx; alert(a);} <form name="seaform" action="java script: msgsea()" method="get"> <div style="margin-bottom:4px;">Search for username: <input type="text" id="search" maxlength="12" size="12" onkeyup="msgsea()"> <a href="java script: msgsea();">Search</a> <br> That begins with the keyword: <input type="radio" name="searadx" value="begins" checked="checked"><br> That contain
  5. Thanks. It looks like it works. =D By the way, what does the + do? Also where would I put in this: {4,12}? (I forgot to add it.)
  6. How can I validate input from a form that only allows numbers and letters in php?
  7. EDIT: I SOLVED IT.----Settimeout doesn't want to function even though the rest of the code works and I don't know why. var t;function time() {var ele = document.getElementById('ele');check(ele.value); // THIS WORKSt = setTimeout("check(ele.value)",100); // THIS DOESN'T WANT TO WORK} ----The solution for setTimeout: t = setTimeout(function() { check(ele.value)},100);
  8. Thanks. I have a question. Can we do a return function with the response text after xmlhttp.send() or is that not allowed?
  9. I want the function checkuser() to return a true/false status based on the server response, but the script returns to inter function of checkuser(). function checkuser(user) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { alert(xmlhttp.responseText); if(xmlhttp.responseText == 'usertaken') { alert('ifok'); return(true); } else { return(false); } } }xmlhttp.open("GET","index.php?act=isusertaken&user=" + user,true)
  10. Thanks it works. ^^ By the way, what does the dollar sign do? Thanks.
  11. I want to use javascript to validate input of a username. I want the username to only allow letters and numbers, but I can't seem to do it. function letnum (ele){ ele = document.getElementById(ele); var patt = RegExp('[a-zA-Z0-9]'); if(patt.test(ele.value)) { alert("ok"); } else { alert("Only letters and numbers allowed."); }}
  12. I tried several times already and it still won't work. <div id="con2" style="display:block;">Text</text><script type="text/javascript">if(document.getElementById('con2').style.display == "block") { alert("Ok");}</script> EDIT: It works now. ; Apparently, external css doesn't work.
  13. Is this a valid format for meta revised?<meta name="revised" content="February 6, 2010">
  14. I'm trying to add a music player when a certain ajax file has the word "needed" f0r example. This was my attempt but I failed: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Domestic Aid/Pomoc Domowa</title><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><style type="text/css">body {font-family:"Times New Roman";font-size: 14pt;background-color: #CCCCFF;}.big {background-color: #33CCCC;font-size: 26pt;border-bottom: 5p
  15. Thank you! ^^ It works now.
  16. The problem is that the on and off buttons to the javascript function send do not work. here is my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Domestic Aid/Pomoc Domowa</title><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><style type="text/css">body {font-family:"Times New Roman";font-size: 14pt;background-color: #CCCCFF;}.big {background-color: #33CCCC;font-size: 26pt;border-bottom: 5px solid #000000;border
  17. Cod-nes

    Arrays

    My array: How can I can select only the googlebot visits from $aquamyarrays['Visits']? (In mysql it would be SELECT * FROM TABLE WHERE bot = 'Googlebot'))
  18. Cod-nes

    Border-image

    How do we use the new css3 border-left-image?
  19. Cod-nes

    Page Problems

    I want to do a redirection script. But when I add the destination url to the my url (redirect.php?page=DESTINATION URL), it messes up since the distination url has also variables (domain.com/index.php?act=play&game=78). How can I fix this?Additional info:the messed up url looks like this: domain.com/index.php?act=play(MISSING: &game=78)the full url looks like this: redirect.php?page=domain.com/index.php?act=play&game=78
  20. I don't know why isn't my code not working. var str="doamin.com/index.php?something=bah";var patt=new RegExp("?");var pat=new RegExp("&");document.write("Test if we find " + patt + " in " + str + ": ")if (patt.test(str)==true){document.write("Match found!");}else if(pat.test(str)==true){document.write("Match found!");}else{document.write("Match not found");}
  21. Cod-nes

    Limiting Queries

    How can I do that?
  22. Cod-nes

    Limiting Queries

    I have a sql table called menu. In the table I have menu links with parents and childs. Example:-> parent #1--> child #1--> child #2-> parent #2--> child #1 But I have too many queries sent to the database and I was wondering how can I limit the queries.Part of the code.// already connected to sql host and database$query = mysql_query("SELECT * FROM menu where power = 1 ORDER BY order");while($row = mysql_fetch_array($query)){echo "<a href='{$row['link']}'>{$row['name']}</a><br>/n";$query2 = mysql_query("SELECT * FROM menu where under = {$row['id']} ORDER BY
  23. How do classes in Php work?I'm a complete newbie about classes. Do classes get run after they are coded (in quote 1) or do we need to define them?
×
×
  • Create New...