私の最初のPHPページには、jquery日付ピッカーを介して機能する日付テキストフィールドがあります.
私は最初のphpページにこれを持っています:
<form id="form2" name="form2" method="post" action="report.php">
<table width="741" border="0" align="center">
<tr>
<th scope="col">
<div align="center">
<label for="date">Date:</label><input type="text" name="Date" id="Date" size="8"/>
<input name="action" type="button" id="Report" value="Generate Report" />
<input name="Clear" type="reset" id="Clear" value="Clear" onClick="window.location.reload()" />
</div>
</tr>
</table>
</form>
今、私はその日付テキストフィールドの値を2番目のphpページに渡したいです... 2番目のphpページでは、これがあります
$date = $_POST['date'];
次に、ここに日付テキストフィールドの値を追加したいと思います:
<tr>
<th colspan='8' align="center" bgcolor="#49166D"><font color=white size=4pt>Daily Ticket Report <?php echo "$date";?></font></th>
</tr>