I have written the following script:
$sql = "SELECT parent_name, subject FROM parent_table";
$rs_query = mysql_query(($sql),$conn);
$record = mysql_fetch_array($rs_query);
$recipient = $record['parent_name'];
$reply_subject = "Re: ".$subject;
In my db, parent_name is "Carmen Chan",
subject is "Question from parent"
Then I want to display the above data in a text field:
print "<input type='text' value=$recipient>";
print "<input type='text' value=$reply_subject>";
But the result can only show me :
Carmen
Re:
All letters after space couldn't be displayed in a text field. Anything I have missed out?