问题描述
已经使用html显示数据库中的数据已有一段时间了,但是最近才尝试将数据显示回表单。找不到答案。
< form method =" post" action ="<?php echo $ PHP_SELF;?>">
名字:< input type =" text"大小= QUOT; 12英寸MAXLENGTH = QUOT; 12英寸name =" Fname">< br>
姓氏:< input type =" text"大小= QUOT; 12英寸MAXLENGTH = QUOT; 36英寸; name =" Lname">< br />
性别:< br />
男:< input type =" radio"值= QUOT;男性" name =" gender">< br />
女:< input type =" radio"值= QUOT;女" name =" gender">< br />
现在,一旦我有数据库中的数据,我想要显示在同一个
形成。一直在做谷歌,并且有一段时间一直在使用html显示
echo" Hello,"。$ Fname。" "。$ Lname。"< br />" ;;
echo" You are" ./ gender。",and like like;
但最近才意识到我从未以形式显示。
任何帮助都将受到赞赏。
Have been displaying data from database using html for some time but
just recently trying to display data back to "form". Can''t find answer.
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br >
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Now once I have the data in the database I want to display in the same
form. Have been doing googles and have for some time been displaying
using html like
echo "Hello, ".$Fname." ".$Lname.".<br />";
echo "You are ".$gender.", and you like ";
but just lately realized I have never display in a "form".
Any help will be appreciated.
这篇关于显示数据形成....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!