Jump to content
xisto Community

Tyssen

Members
  • Content Count

    1,159
  • Joined

  • Last visited

Posts posted by Tyssen


  1. That isn't true at all.  Look at the United States fighting in Iraq for example.  They weren't trying to change their religion, they are trying to make Iraq a better place even though others might not see it that way.

    That's a poor example. The Iraq conflict's not about religion, it's about money and power as are the majority of conflicts these days.
    Hundreds of years ago, it was a different story. The Crusades most definitely were about religion. To describe them as anything else is foolish. The atrocities committed by both sides centuries ago engendered resentments that still exist today in the attitudes of the Middle East towards the Western world.

  2. Something like the script "activates" another script that does something and returnes the result back to the original script.

     

    Sounds like you're talking about a form that submits to itself. Basically, the values will be captured by using the $_POST['formElementName'] and then you check to see if the form has been submitted already with if ($_SERVER['REQUEST_METHOD'] == "POST"). If it hasn't been submitted yet, you display the form, if it has you display something else.

  3. Secondly, and (in my mind at least) on a related note, what are the exact requirements for a page to be XHTML? I see a lot of talk about using <?xml ?> tags with various attributes, and using an xmlns attribute, and that the <?DOCTYPE > is simply there for validators. Well, even if the <!DOCTYPE > is soley for validators, the W3C validator doesn't complain about my lack of xmlns or anything, so are these actually required?

    XHTML 1.1 must be served with the XML prologue (<?xml version="1.0" encoding="UTF-8" ?>). With this prolog, pages must be served with the application/xml+xhtml MIME type (that's the meta http-equiv="Content-Type"...). Unfortunately, IE (and that's going to include IE7 too) doesn't support serving pages with this MIME type. For IE, you have to use text/html.
    So for that reason, it's advisable to serve your pages as XHTML 1.0 which doesn't require the XML prologue. Either that or use a browser sniffing script to serve up different MIME/DOCTYPES.

  4. The Australians seem to me to embody the best outlook. They know just how hard it is to get an invitation to the biggest sporting party on earth. Now that they've made it again after thirty two years, they're going to enjoy it above all else, rather than make rash predictions about where they'll finish.

    Well it's kinda part of the national culture to not big up yourself too much (we have Tall Poppy Syndrome which sees people who some perceive to have become too successful being criticised for their success), but really, you'd be living in a fantasy land to believe that after 32 years in the wilderness from the elite, that we're suddenly gonna march all the way to the final.
    Having said that, there probably weren't too many who thought Greece would win the last Euro championships either. ;)

  5. You can't achieve this sort of thing without some sort of scripting whether it be PHP, ASP or javascript (not as straightforward in JS anyway I think). Your form will be output to the browser as HTML, but you can use a script to construct that HTML and fill in the values.

    So, taking the previous example, the link to the form is link.php?id=X&somevalue=Y&someothervalue=Z.

    Using PHP, you'd do something like this:

     

    <?php print '<input type="text" name"field1" id="field1" value="'.$_GET('somevalue').'" />print '<input type="text" name"field2" id="field2" value="'.$_GET('someothervalue').'" /> ?>
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.