I am new to PHP and this group. I have searched this forum and php.net for an answer to this problem, but didn't find anything. I'm sure it has been asked many times before so please excuse my ignorance.
I'm filling a form from a mysql array so the data can be editied before being updated. All goes well until any of the input boxes encounter a space then all the rest of the data is truncated. I have tried everything I can think of to no avail. A snippet of code is shown below.
$row = mysql_fetch_array($result);
$ER_Num = $row['ERNUM'];
echo <<<PRN
<H1>$PageTitle</H1>
<FORM ACTION=$Form METHOD=post>
ER Number:
<INPUT TYPE="TEXT" NAME=ERNUM SIZE=10 MAXLENGTH=10 VALUE=$ER_Num>
Any help would be appreciated.