按下 index.php 上的提交按钮后,index2.php 中没有显示输出
//index1.php
<form action="index2.php" name="firstSubmit" method="POST">
<table border="0" cellspacing="10">
<tr>
<td>Full Name: </td>
<td><input name="fullname" id="name" type="text" size="20" maxlength="80"></td>
</tr>
<tr>
<td>Title:</td>
<td><input name="title" id="title" type="text" size="20" maxlength="80"></td>
</tr>
<tr>
<td>Company:</td>
<td><input name="company" id="company" type="text" size="20" maxlength="80"></td>
</tr>
<tr>
<td>Course:</td>
<td>PHP Basics</td>
</tr>
<tr>
<td> </td>
<td colspan="2"><input type="Submit" name="submit" value="Proceed"></td>
</tr>
</table>
</form>
//index2.php
<?php session_start();
$_SESSION['fullname'] = $_POST['fullname'];
$_SESSION['title'] = $_POST['title'];
$_SESSION['company'] = $_POST['company'];
$_SESSION['time'] = $_POST['time'];
?>
<form action="certificate.php" name="certificateSubmit" method="POST">
<table border="0" cellspacing="10">
<tr>
<td>Full Name: </td>
<td><?php echo $_SESSION['fullname']; ?></td>
</tr>
<tr>
<td>Title:</td>
<td><?php echo $_SESSION['title']; ?></td>
</tr>
<tr>
<td>Company:</td>
<td><?php echo $_SESSION['company']; ?></td>
</tr>
<tr>
<td>Course:</td>
<td>PHP Basics</td>
</tr>
<tr>
<td> </td>
<td colspan="2"><input type="Submit" name="submit" value="Generate Certificate > >"></td>
</tr>
</table>
</form>
---------我刚刚更新了脚本。这次没有出现关于 session_start() 的警告,但是按下进程按钮后没有结果显示+----