我有一个接受两个变量的 PHP 页面
<?php
$formurl = "listen.html" ;
$playerurl = "player.php" ;
$mymp3 = $_POST["mp3name"];
$mytitl = $_POST["titlname"];
/* echo "MP3 Name: ".$mymp3."<br>" ;
echo "Chapter Name: ".$mytitl; */
header( "Location: $playerurl?mp3name=$mymp3& ?titlname=$mytitl");
exit ;
?>
但是当我打开 player.php 时,
<table width="519" border="0" align="center">
<tr>
<?php
$mymp3=$ _GET[ "mp3name"];
$mytitl=$ _GET[ "titlname"];
?>
<td width="513" height="63" class="TopNav" align="center">You are listening to
<?php echo $mytitl; ?>
</td>
</tr>
<tr>
<td align="center">
<audio autoplay controls preload="auto">
<source src="/MP3s/<?php echo $mymp3; ?>.ogg" type="audio/ogg" />
<source src="/MP3s/<?php echo $mymp3; ?>.mp3" />Your browser does not support the audio tag.</audio>
</td>
</tr>
<tr>
<td> </td>
</tr>
仅显示一个变量 ( mp3name
)。请帮忙。