I have a strange problem. I have a text file that I read in through
while($userinfo = fscanf($fp,"%[a-zA-Z0-9,. ]|%[a-zA-Z0-9@,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]|%[a-zA-Z0-9,. ]\n")){
list($id,$name,$pass,$email,$farmname,$address,$city,$state,$zip,$phone1,$phone2,$phone3)=$userinfo;
if($uid == $id){
$this_id=$id;
$this_name=$name;
$this_pass=$pass;
$this_email=$email;
$this_farmname=$farmname;
$this_address=$address;
$this_city=$city;
$this_state=$state;
$this_zip=$zip;
$this_phone1=$phone1;
$this_phone2=$phone2;
$this_phone3=$phone3;
}
Now I got the correct information. But now when I build the form for input with the echo command.
<INPUT size="60" type="text" name="alterfarmname" value=<?php echo $this_farmname ?>>
It will not display the whole string for editing. i.e. Double Day Farm will only show Double and truncate.
What to do?????
HELP