我的主机供应商刚刚将PHP从5.3升级到5.4,所以我不确定这是否影响了我网站上的任何表格,因为它上周工作正常.
这是我的表格
<form action="insert.php" method="post">
<label for="artist">1. Artist Name: </label><input id="artist" name="artist" type="text" />
<label for="song">2. Song Name: </label><input id="song" name="song" type="text" />
<label for="label">3. Label: </label><input id="label" name="label" type="text" />
<label for="genre">4. Genre: </label>
<select name="genre"><option value="RnB">RnB</option></select>
<select name="genre"><option value="Hip Hop">Hip Hop</option></select>
<select name="genre"><option value="Reggae">Reggae</option></select>
<select name="genre"><option value="Gospel">Gospel</option></select>
<select name="genre"><option value="Dance">Dance</option></select>
<select name="genre"><option value="Jazz">Jazz</option></select>
<select name="genre"><option value="Afrobeats">Afrobeats</option></select>
<select name="genre"><option value="Soul">Soul</option></select>
<label for="genre">5. Country/Area: </label>
<select name="country"><optgroup label="Country"><option value="UK">UK</option> </optgroup></select>
<select name="country"><optgroup label="Country"><option value="US">US</option></optgroup></select>
<select name="country"><optgroup label="Country"><option value="CANADA">CANADA</option> </optgroup></select>
<select …Run Code Online (Sandbox Code Playgroud)