Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. if .tgender_female is an <a> tag you can try:.tgender_female:link,.tgender_female:visitedand.tgender_female:hoverif not, you can use:.tgender_female a:link,.tgender_female a:visited
  2. Well, when you add a register to one of the tables you'll have to add a register to the other one too to make sure they're always the same.I don't think you can link tables .
  3. You can create classes in javascript something like this: function House(width, length, height) { this._width = width; this._length = length; this._height = height; this._windows = 0;}House.protoype.createWindow = function() { this._windows += 1;} later on you can use this function as a class:myHouse = new House(500,200,30);while(myHouse._windows < 5) { myHouse.createWindow();}I haven't practised much with classes, but I think this is how they're used in javascript.
  4. Ingolme

    Flash Stage Size

    Well, the only solution I see is to make two flash documents and put them into a page. There's a function from Flash 8 called localConnection() that allows two flash documents on screen to connect with eachother and pass information.
  5. Closing a tag that way is for XHTML. In HTML it's not necessary to close <br> and <img> tags and those kinds.
  6. I don't think there's an operator in SQL that can do that.
  7. You have to take the data from the column, save it in a variable and then update the column after with the new data added to it, there's no other way to do it.
  8. Yes, that character encoding will display the characters correctly. You don't need to use entities.
  9. You might want to try putting this header in the file if you're using AJAX to access it:<?php header("Content-type: application/xml;charset=ISO-8859-1"); ?>+And instead of <?xml version="1.0" encoding="utf-8"?> try <?xml version="1.0" encoding="iso-8859-1"?>UTF-8 doesn't support spanish characters.
  10. It might be because your host doesn't have PHP, or because the code you entered has errors.Actually, you might want to make sure the file is saved with a .php extension and not a .html extension. Like "index.php" and not "index.html"
  11. If your keyboard doesn't write them then you'll have to put them yourself.The codes would beé é è è ê êÉ É È È Ê ÊThe same with other vowels.If what you want is a character set that will display them rather than using HTML entities, try ISO-8859-1, instead of UTF-8.
  12. But the word "previous" is actually just another child node with node type 3.I made an example similar to that in XML and all my browsers display it without error messages.
  13. How is that invalid?<prev /> is called an empty tag in XML.
  14. The problem is that it may allow access to people who have similar names to others, but if you really want it, try this query: $firstname = $_REQUEST['firstname'];$surname = substr($_REQUEST['surname'],0,1); // gets the first character of the given name.$result = mysql_query("SELECT * FROM users WHERE firstname = '$firstname' AND surname LIKE '$surname%'");
  15. I learned everything I know from zero all from W3Schools. And I didn't know HTML or any other web programming language before that.I don't recommend spending money when you can learn for free. Just read the tutorials and practise with the "Try it" pages that W3Schools provides. http://w3schools.com/html/tryit.asp?filename=tryhtml_basic
  16. Do you mean to search for all surnames starting with the first character?
  17. The XHTML tag is working properly for my website.
  18. Ingolme

    Centering NAV bar

    Try this in your CSS: #navcontainer{text-align: center;}#navlist{background: #73BE1E;margin: 0px auto;padding: 0px;height: 16px;border: 1px solid #FFEA93;}
  19. It wouldn't work anyways, the href attribute doesn't run javascript.Best use an HTML form like Reg Edit said.
  20. You can put this meta tag in the head of the document so that the characters show correctly:XHTML:<meta http-equiv="Content-Type" content="application/xml+xhtml;charset=iso-8859-1" />HTML:<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  21. No, you can't use Post variables within the same page. And other than that, if you mean to sum the numbers use the + operator (2+1=3, not 2*1=3 --> 2*1=2)With PHP you'd need two pages:page1.html<form action="process.php" method="post"><select name="val1" ><option value="1">1</option><option value="1">1</option></select><select name="val2" type="post"><option value="2">2</option><option value="2">2</option></select> <input type="submit" /></form>process.php<?php$total = intval($_POST['val1']) + intva
  22. The W3Schools statistics aren't as accurate. Firefox is greater there than generally in the internet because W3Schools is mostly visited by web developers, which have a preference to firefox.
  23. You can make the text align to the vertical middle of a container but only if the container has a static height. It's like this:<div style="height: 200px; line-height: 200px;">Some text Some text Some text Some text </div>
  24. Maybe you want to use the photo as a background image:div.class {background-image: url(image URL);background-position: 200px 50px;background-repeat: no-repeat;}****************<div class="class">Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text</div>Another thing you can do is this:<div style="position: relative"><img src="image URL" alt="Alternate text" style="position: absolute; top: 200px; left: 50px; z-index: -1;" />Some text Some text So
  25. Well, you can try .htaccess and .htpasswd files to pretect folders.with PHP you can't protect images, but you can protect the page itself something like this: <?phpif($_POST['user'] == "username" && $_POST['password'] == "password") {?><!-- Show some HTML of the site --><?php} else {?><form action="?a=1" method="post"><div>Log in to view this page:<br />Username: <input type="text" name="user" /><br />Password: <input type="password" name="password" /><br /><input type="Submit" /></div></form><?php}?>
  • Create New...