Hi ,
Need some help
I get data from postgre, but when i passed to text it cuts to space the code is:
echo "<tr><td><font szie=2>First name:</td><td><input type=text name=Fname value=" . $row['Fname'] . "></td></tr>";
tre result if Fname ='Peter David' is 'Peter', dont show anything after the space
Thanks in advance
print only to space
Moderator: General Moderators
Change your echo to
Your echo is outputing to the browser as HTML like this
when it should be :
The value has to come within quotes ("") to accept blanks.
Code: Select all
echo '<tr><td><font szie=2>First name:</td><td><input type=text name=Fname value="'.$row['Fname'].'"></td></tr>';Code: Select all
<input type=text name=Fname value=Peter David>Code: Select all
<input type=text name=Fname value="e;Peter David"e;>-
jfigueiredo
- Forum Newbie
- Posts: 5
- Joined: Tue Jul 12, 2005 9:57 am