0

这是 rpay2.html 的完整代码

<html>
<body>
<form name="info" action="rpay4.php" method="get">
<h2>Personal Information</h2>
Name:
<input type="text" name="Name" value="Enter your name here" onfocus="ClearPlaceHolder (this)" onblur="SetPlaceHolder (this)" class="txt" maxlength="99" onkeypress="return FilterInput (event)">

Address:
<input type="text" name="Address" value="Enter your address here" onfocus="ClearPlaceHolder (this)" onblur="SetPlaceHolder (this)" class="txt" maxlength="99">

Contact #:
<input type="text" name="ContactNo" value="Enter your contact no. here" onfocus="ClearPlaceHolder (this)" onblur="SetPlaceHolder (this)" class="txt" maxlength="99">

E-mail:
<input type="text" name="Email" value="Enter your e-mail here " onfocus="ClearPlaceHolder (this)" onblur="SetPlaceHolder (this)" class="txt" maxlength="99">

<p align="right"><a href="rpay3.html"><input type="BUTTON" value="Submit" onclick="checkit(); return false"></a><a href="rpay.html" target="_top"><input Type="BUTTON" VALUE="Cancel"></a>
</div>
</form>

而对于 rpay4.php

<html>
<body>
Your reservation informations:
<br><br>
<?php
echo "Name: " . $_GET["Name"] . "";
echo "You live in " . $_GET["Address"] . "";
echo "Your contact number is " . $_GET["ContactNo"] . "";
echo "Your e-mail is " . $_GET["Email"] . "";
?>
<p align="right">Proceed?<br><a href="res.html" target="_top"><input     type="button" onclick="javascript:gosomewhere();" value="Ok"></a><input Type="BUTTON"     VALUE="Cancel" onclick="window.location.href='rpay2.html'">
    </body>
</html>    

只有“您的预订信息:”和按钮显示在 rpay4.php 似乎是什么问题?初学者,见谅

4

1 回答 1

0

而不是这个

<p align="right"><a href="rpay3.html"><input type="BUTTON" value="Submit" onclick="checkit(); return false"></a><a href="rpay.html" target="_top"></a>

试试这个

<input type="submit" value="submit" name="submit" onclick="checkit(); return false" /> <input Type="button" value="Cancel" onclick="window.location.href='rpay.html';" />

除了一切看起来都很好......

于 2013-03-05T11:52:28.827 回答