dswwuo1223 2011-11-22 23:09
浏览 313

在HTML选择中选择选项

I have an HTML select with several options. One of them is selected by default, but I would like to be able to change which one is selected. I found out how to do it using javascript, but I would like to do it using PHP as the information used to set it is stored in a PHP $_SESSION variable.

  • 写回答

3条回答 默认 最新

  • dtpa98038 2011-11-22 23:13
    关注

    You'll need to learn PHP, I recommend starting here.

    http://www.w3schools.com/php/

    Start Googling around for PHP tutorials. After you learn basic PHP, this will be easy for you.

    评论

报告相同问题?