Why doesn't this work?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
richcoleuk
Forum Newbie
Posts: 24
Joined: Fri Nov 05, 2004 1:33 pm

Why doesn't this work?

Post by richcoleuk »

Code: Select all

echo '<strong>Firstname:</strong> '. $row&#1111;'FirstName'];
Will display the following:

Firstname: Firstname( whatever is retrieved from this field in the table )

But instead of printing this i want it to appear in a text box

So why doesn't this work:

Code: Select all

<input type="text" name="first" size="25" id="fname" value="<?php $row&#1111;'FirstName']?>">
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

you forgot to use echo the second time
richcoleuk
Forum Newbie
Posts: 24
Joined: Fri Nov 05, 2004 1:33 pm

Post by richcoleuk »

doh!

can't believe i missed that!

cheers
Post Reply