我的网站上有一个页面,其中包含一个表单,用于编辑事件信息并将其更新到数据库中。我有一个选择框,里面有门票价格的选项,在我的html代码中前面都有一个欧元符号,但是在网页上显示为1欧元。我有完全相同的入场价格选择输入与其他代码相同的网页,他们工作很好,有人可以帮助吗??

<p class='form_box_text'>Admission:
  <select name='admission' id=''>
    <option value=''></option>
    <option value='Free' "; if($admission=='Free') echo("selected=\ "selected\" "); echo ">Free</option>
    <option value='€1' "; if($admission=='€1') echo("selected=\ "selected\" "); echo ">€1</option>
    <option value='€2' "; if($admission=='€2') echo("selected=\ "selected\" "); echo ">€2</option>
    <option value='€3' "; if($admission=='€3') echo("selected=\ "selected\" "); echo ">€3</option>
    <option value='€4' "; if($admission=='€4') echo("selected=\ "selected\" "); echo ">€4</option>
    <option value='€5' "; if($admission=='€5') echo("selected=\ "selected\" "); echo ">€5</option>
    <option value='€6' "; if($admission=='€6') echo("selected=\ "selected\" "); echo ">€6</option>
    <option value='€7' "; if($admission=='€7') echo("selected=\ "selected\" "); echo ">€7</option>
    <option value='€8' "; if($admission=='€8') echo("selected=\ "selected\" "); echo ">€8</option>
    <option value='€9' "; if($admission=='€9') echo("selected=\ "selected\" "); echo ">€9</option>
    <option value='€10' "; if($admission=='€10') echo("selected=\ "selected\" "); echo ">€10</option>
    <option value='€11' "; if($admission=='€11') echo("selected=\ "selected\" "); echo ">€11</option>
    <option value='€12' "; if($admission=='€12') echo("selected=\ "selected\" "); echo ">€12</option>
    <option value='€13' "; if($admission=='€13') echo("selected=\ "selected\" "); echo ">€13</option>
    <option value='€14' "; if($admission=='€14') echo("selected=\ "selected\" "); echo ">€14</option>
    <option value='€15' "; if($admission=='€15') echo("selected=\ "selected\" "); echo ">€15</option>
    <option value='€16' "; if($admission=='€16') echo("selected=\ "selected\" "); echo ">€16</option>
    <option value='€17' "; if($admission=='€17') echo("selected=\ "selected\" "); echo ">€17</option>
    <option value='€18' "; if($admission=='€18') echo("selected=\ "selected\" "); echo ">€18</option>
    <option value='€19' "; if($admission=='€19') echo("selected=\ "selected\" "); echo ">€19</option>
    <option value='€20' "; if($admission=='€20') echo("selected=\ "selected\" "); echo ">€20</option>
  </select><span id='required'>*</span>
</p>

最佳答案

试着用&euro;代替欧元标志:

09-28 04:54