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 に答える