Page 1 of 1

Why doesn't this work?

Posted: Tue Dec 07, 2004 11:29 am
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']?>">

Posted: Tue Dec 07, 2004 11:33 am
by rehfeld
you forgot to use echo the second time

Posted: Tue Dec 07, 2004 11:36 am
by richcoleuk
doh!

can't believe i missed that!

cheers