RE: [PHP] HTML FORMS AND ECHO
| From: | Krznaric Michael | Date: | Thu, 31 Aug 2000 17:58:59 +0000 |
| Subject: | RE: [PHP] HTML FORMS AND ECHO | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14653@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: emil sykk [mailto:emilsykko@swipnet.se]
Sent: Thursday, August 31, 2000 1:55 PM
To: php-general@lists.php.net
Subject: [PHP] HTML FORMS AND ECHO
> Hello every one!!
>
> I'm currently working on a database as gonna contain alla my costumers.
> It's a mySQL databas witch contains, names, phon numbers, adresses.. etc.
>
> now have I come to the part of the work when I'm gonna do a uppdate page
så
> that I can uppdata info about the costumers, and I can get it to print out
all
> the info from the databas as plain text on a page.. but I would like to
have it
> in a text field. (INPUT TYPE=text NAME=fnamn VALUE=echo $fname ) but it
won't
It seems like you should try INPUT TYPE=text NAME=fnamn VALUE=<?echo $fname;
?>
I get the impression that you are in HTML mode. Otherwise if you were in
php mode you can try something like
print ("<INPUT TYPE=text NAME=fname VALUE=$fname>");
> work.. I have tried with typing in the VALUE (echo $fname) at many
different
> ways... ex. echo $row->fname, echo $row[\"fname\"]..
>
Mike