if (第一个条件正确)
{
do this!
}
elseif (第二个条件正确)
{
do this!
}
elseif (第三个条件正确)
{
do this!
}
... 等等 ...
else
{
do this!
}
--------------------------------------------------------------------------------
这儿有一个说明如何使用的例子:
--------------------------------------------------------------------------------
< html>
< head>
< style type="text/css">
td {font-family: Arial;}
< /style>
< /head>
< body>
< font face="Arial" size="+2">
令人惊奇的幸运甜饼生产程序
< /font>
< form method="GET" action="cookie.php">
< table cellspacing="5" cellpadding="5" border="0">
< tr>
< td align="center">
请选择日期
< /td>
< td align="right">
< select name="day">
< option value="Monday">Monday
< option value="Tuesday">Tuesday
< option value="Wednesday">Wednesday
< option value="Thursday">Thursday
< option value="Friday">Friday
< option value="Saturday">Saturday
< option value="Sunday">Sunday
< /select>
< /td>
< /tr>
< tr>
< tr>
< td colspan="2" align="center">
< input type="submit" value="点击我!">
< /td>
< /tr>
< /table>
< /form>
< /body>
< /html>
---------------------------------------------
| 对此文章发表了评论 |
