HATE internet explorer coding!!!! Again~

Printable View

  • 04-15-2008, 06:56 AM
    Jojee
    It still makes the tables mess up I think. Anyway thanks xD I think I'll just let IE users see huge tables, they deserve it I hate them. xD

    So I have a different question now~ using PHP, I'm making a quiz, right? I'm using arrays for the responses...

    $answers_array = array(
    1=> " Yes|1
    No|2",

    etc

    So that's question #1. A yes corresponds with result #1, and No corresponds with result #2. Is there any way I can get an answer to correspond with multiple results? I'm really a PHP noob.
  • 04-15-2008, 12:39 PM
    o_O
    I'm assuming the "1" in "Yes|1" is some piece of data that needs to accompany the "Yes" here (like order, or points, or rank). :p
    You could do something like this:
    PHP Code:

    $answers_array = array(
        array(
    'Y' => 2'N' => 1),
        array(
    'Y' => 1'N' => 2),
        array(
    'Y' => 1'N' => 2),
        array(
    'Y' => 2'N' => 1),
        array(
    'Y' => 1'N' => 2),
        array(
    'Y' => 1'N' => 2)); 

    Then to access your array, use something like:
    PHP Code:

    foreach ($answers_array as $curr_values) {
        
    $y $curr_values['Y'];
        
    $n $curr_values['N'];
        if (
    $y $n) echo 'Y is greater than N';
        else if (
    $y == $n) echo 'Y is the same as N';
        else echo 
    'Y is less than N';
        
    // Do other stuff with Y and N here


  • 04-27-2008, 07:36 PM
    I'solé
    Simple solution:
    "Will show up better in Firefox".
  • 04-27-2008, 10:57 PM
    Baloki
    Quote:

    Originally Posted by I'solé View Post
    Simple solution:
    "Will show up better in Firefox".

    People who don't make an effort to code cross-browser or just put a cop-out on their sites shouldn't be allowed to make websites.
  • 04-27-2008, 11:32 PM
    Krelian
    Yeah, it's just not acceptable to optimize for one browser only and exclude people with other browsers. A website has to be tested with different browsers. It would be best of course to test with all possible browsers, but since that's hardly possible it should at least be tested and working with Firefox and IE.
  • 04-27-2008, 11:34 PM
    crono_logical
    Quote:

    Originally Posted by Baloki View Post
    Quote:

    Originally Posted by I'solé View Post
    Simple solution:
    "Will show up better in Firefox".

    People who don't make an effort to code cross-browser or just put a cop-out on their sites shouldn't be allowed to make websites.

    That why I stick to coding my sig rather than the frontsite :p
  • 04-28-2008, 12:02 AM
    o_O
    I just think of having SVG capabilities as a bonus for using a real browser. :p
  • 04-28-2008, 12:06 AM
    crono_logical
    And png transparency too? Or have they bothered fix that in IE now? :p Page rendering differences is one thing, but not supporting standard things or newer technologies is lame :p
  • 04-28-2008, 08:08 AM
    Rantz
    The PNG alpha channel support is implemented in IE7.
  • 04-28-2008, 08:42 PM
    Jessweeee♪
    Quote:

    Originally Posted by Baloki View Post
    Quote:

    Originally Posted by I'solé View Post
    Simple solution:
    "Will show up better in Firefox".

    People who don't make an effort to code cross-browser or just put a cop-out on their sites shouldn't be allowed to make websites.

    People should definitely as least code them to work in both IE and Firefox ;_;

    ...speaking of which, I thought I had the image maps on the website linked in my signature working in IE, but I was wrong. Could anyone show me what I did wrong ^-^;;
  • 04-30-2008, 12:03 AM
    leilei
    Quote:

    Originally Posted by Rantzien View Post
    The PNG alpha channel support is implemented in IE7.

    It's also implemented in IE5!



    ...for the Mac.
    Not only that but image resampling with filter, so those bad html size thumbnails look suddenly good..