Search results

  1. M

    Disable editing auto-responders for regular users

    As far as I've seen, neither Horde nor SquirellMail on X10 has a plugin installed which will let them edit auto-responder messages. If the site's not hosted on X10, you could see about removing/disabling any auto-responder/vacation plugins for the webmail app.
  2. M

    CSS being an arse.

    From CSS 2.1, § 10.5 "Content height: the 'height' property": The height of .main_text is 100% of its parent's (<body>'s) height, which is 100% of its parent (<html>), which is implicitly auto, hence the other heights become auto. If you keep reading the standard, you find: The "root element"...
  3. M

    action="update.php" make new page :(

    Another issue with the page you link to (http://martynleeball.x10hosting.com/contactus.php) is that the bottom bar covers up "Show comments" in FF 3.5 and Safari 4.0 (and probably others). The simplest solution is to put a bottom padding of 1em on .main_text. With this option, the scrollbar will...
  4. M

    action="update.php" make new page :(

    You're doing the right thing. New issues deserve new threads for exactly the reason you say: it prevents confusion. You can always include links to other relevant threads. You posted your DB username and password again; better edit your post. With the <p> elements, the <br/> are...
  5. M

    CSS Issue

    Floats are tricksy beasts, since they exist outside the normal flow (see also "CSS Positioning" on Brainjar, among others), somewhat like absolutely positioned elements. The best description of floats is § 9.5 of the CSS 2.1 standard, since it's normative (that is, it describes the standards...
  6. M

    Deleting from data base using value from form.

    As it says in the sig, read the link, which has been made more noticeable.
  7. M

    Deleting from data base using value from form.

    As I said before, (and as the comment says) Both lines won't hurt, but they do the same thing. Use whichever is more readable or try PDO's prepared queries, which is the superior route. There are plenty of PDO tutorials, though some have bugs and others are just low quality. The first line has...
  8. M

    Deleting from data base using value from form.

    Very good advice, this. It's part of the REST architectural style. Google turns up plenty of more technical descriptions, should you wish to go deeper. Almost. You're mixing both string concatenation (via the '.' operator) and string interpolation. You only need one of them: $ID =...
  9. M

    About Adobe Flex and Air

    A platform is a real system or virtual machine that executables run on. 32-bit Windows and a PC with an Intel processor constitutes a platform, as OS X and an ARM processor make for the iPhone platform. The Java platform is the Java Virtual Machine (JVM). The PS3 and XBox 360 are both...
  10. M

    Javascript tag build

    Any particular reason you're doing this in JS? Does the XML result from an AJAX query? Instead of creating a string and printing it with "document.write", use "document.createElement" and "document.createTextNode" to create nodes and "node.appendChild" to add the links to the document. You can...
  11. M

    Writing to database?

    When a NULL is inserted into an auto-incremented column in MySQL, the NULL will be replaced with the next value in the auto-increment sequence. In short, it won't cause problems, but it's unnecessary. Rather than or die (and another article on the same theme), throw an exception or generate an...
  12. M

    About Adobe Flex and Air

    AIR is a platform for rich internet applications (RIAs) -- basically, applications based on internet technologies such as html+css+js, Silverlight or (as with AIR) Flash. Flex is a framework, providing all sorts of useful classes to create RIAs, such as GUI controls and networking protocols...
  13. M

    cPanel : problem with a text file

    Another option is to try using an FTP client to delete it.
  14. M

    Did I make any mistake with .htaccess?

    What are the actual lines in your .htaccess? What URL are you trying and what is the result?
  15. M

    php - MySQL linking error

    Readability suggestion: the calls to stripslashes and mysql_real_escape_string in the registration script can be shortened to: if (get_magic_quotes_gpc()) { $_POST = array_map('stripslashes', $_POST); } $registrationData = array_map('mysql_real_escape_string', $_POST); Also, don't...
  16. M

    Javascript Help - Total Beginner

    Very important: don't dump all your code and say "it doesn't work". You did a good job describing what the code is supposed to do, but neglected to say what it does (including error messages). I'm not sure if it was intentional, but you posted a rather nice minimal test case. Keep doing that in...
  17. M

    Did I make any mistake with .htaccess?

    "." matches any one character, so this condition is always true when HTTP_HOST is set. Given the 3rd RewriteCond, this line adds nothing. Lower-case server variable names may or may not work. The documentation only ever shows them as upper case. Best not to tempt fate. Here you're not...
  18. M

    Help needed with image mapping

    My mistake; it's been fixed in the previous post. In the original code, #map1 was called "shapesMap". I incorrectly changed the name in the page load handler from "shapeAreas" to "map1". "map1" comes from the <map id="map1" name="map1"> element. If it had a 'runat="server"' attribute, you...
  19. M

    What is my "cURL executable file location"?

    The curl binary is in "/usr/bin". Depending on how you're running it, you might be able to use "/usr/bin/env curl", which will search the PATH environment variable for curl. You can do this for any binary that's on the PATH: "/usr/bin/env python", "/usr/bin/env perl".
  20. M

    CSS Issue

    Your intuition is correct, the floats are preventing centering. You've a few different options. One is to set the display of the menu items to inline-block, but this won't work on IE 6 & 7, nor on FF 2 and older. Another option is to set their display to inline and specify a line-height. ~2.4em...
Top