2013-03-05 279 views
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什么似乎是问题?只是个初学者,不好意思

+0

这看起来还好。你的问题是什么? – 2013-03-05 11:18:26

+0

那么,什么问题? – 2013-03-05 11:18:35

+0

添加一个提交按钮,它应该是确定的。 – bitWorking 2013-03-05 11:19:26

回答

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';" /> 

以外的其他一切都看起来不错....

相关问题