NYCPHP Meetup

[nycphp-talk] I'm stupid...

D C Krook dkrook at hotmail.com
Wed May 21 14:54:51 EDT 2003


The option looks suspicious:

You're missing a quote that I assume you're escaping, and you're assigning a 
non-unique value to the entire set of options

    print "<option value=\\"1\\>$val</option>";

try:

    foreach ($result as $key=>$val) {
        print "<option value=\\"$key\\">$val</option>";
    }


>$result = $query;
>         print ("<select name=\\"order\\">");
>         foreach ($result as $key=>$val)
>         print "<option value=\\"1\\>$val</option>";
>         print ("</select>");
>         }
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus




More information about the talk mailing list