<form method="post" enctype="multipart/form-data" action="?action=add"> <ul> <li>商品分类: <select name="classification"> <option value="1" selected="selected">食品</option> <option value="2">服装</option> <option value="3">鞋类</option> </select> </li> <li><?php if($_POST['classification']==1) { echo "口味:"; } else { echo "尺码:"; } ?><input type="text" name="taste" /></li>