我已阅读发布的多个问题,但无法找到直接回答我想要完成的问题的问题。我在其他发布答案中尝试了几个建议,但仍然没有我想要的结果。
我正在尝试从 single_name 表单获取输入以填充到我的示例页面(single2.php)上。
这是 single_name.php 上的代码:
<form name="singlename" method="post" action="./single2.php" id="Form1" onsubmit="return Validatesinglename(this)">
<div id="wb_Text1" style="position:absolute;left:10px;top:15px;width:81px;height:16px;z-index:0;text-align:left;"><span style="color:#000000;font-family:Arial;font-size:13px;">Name:</span></div><input type="text" id="name" style="position:absolute;left:101px;top:15px;width:198px;height:23px;line-height:23px;z-index:1;" name="name" value="" autocomplete="off">
<div id="wb_Text2" style="position:absolute;left:10px;top:45px;width:81px;height:16px;z-index:2;text-align:left;"><span style="color:#000000;font-family:Arial;font-size:13px;">Gender:</span></div><input type="text" id="gender" style="position:absolute;left:101px;top:45px;width:198px;height:23px;line-height:23px;z-index:25;" name="Gender" value="">
<div id="wb_Text3" style="position:absolute;left:10px;top:75px;width:81px;height:16px;z-index:4;text-align:left;"><span style="color:#000000;font-family:Arial;font-size:13px;">Date of Birth:</span></div><input type="date" id="dob" style="position:absolute;left:101px;top:75px;width:198px;height:23px;line-height:23px;z-index:5;" name="dob:" value="" autocomplete="off">
<div id="wb_Text4" style="position:absolute;left:10px;top:105px;width:81px;height:16px;z-index:6;text-align:left;"><span style="color:#000000;font-family:Arial;font-size:13px;">Message:</span></div><input type="text" id="message" style="position:absolute;left:101px;top:105px;width:198px;height:23px;line-height:23px;z-index:7;" name="Message:" value="" autocomplete="off">
<input type="submit" id="Button1" name="" value="Send" style="position:absolute;left:101px;top:135px;width:96px;height:25px;z-index:8;">
<input type="reset" id="Button2" name="" value="Reset" style="position:absolute;left:207px;top:136px;width:96px;height:25px;z-index:9;">
</form>
这是 single2.php 上的内容:
<div id="wb_Text1" style="position:absolute;left:428px;top:514px;width:515px;height:391px;text-align:center;z-index:29;">
echo $_POST["name"];
}
?></strong></span><span style="color:#000000;font-family:Chancellor;font-size:19px;">
<br>
<br>
Local Origin of Name: Unique and Original<br>From the name
<?php
{
echo $_POST["name"];
} <br>
<br>
Evaluation Meaning: Festive, Joyous
<br>
<br>
<strong>*</strong> Emotional Spectrum <strong>*</strong>
<br>
Up front and honest
<br>
<strong>*</strong> Personal Integrity <strong>*</strong>
<br>
Friends know that
<?php
{
echo $_POST["name"];
?>
can be called on in a crisis.
<br>
<strong>*</strong> Personality <strong>*</strong>
<br>
Life in the fast lane, tempered by common sense.
<br>
<strong>*</strong> Relationships <strong>*</strong>
<br>
Stays true and loyal
<br>
<br>
<?php
{
echo $_POST["name"];
}
?> is a
<?php
{
echo $_POST["gender"];
}
?>
<br>
<br>
{
echo $_POST["name"];
}
?>
was born
<?php
{
echo $_POST["dob"];
}
?>
<br>
<br>
</span>
<span style="color:#000000;font-family:Georgia;font-size:27px;"><strong><em>
<?php
{
echo $_POST["message"];
}
?></em></strong>
</span>
我可以在每个地方发布“姓名”,但“性别”、“出生日期”和“消息”不发布。
任何帮助将不胜感激。