This topic is locked

$readonlyfields is hiding value when assigned to variable

6/19/2008 3:56:25 AM
PHPRunner General questions
R
roadyx author

Hi Forum,

Need Help again. No docs on $readonlyfields.

I'm trying to do this:
$car = $readonlyfields["carrier"];

$ui="You rcvd a $car E-mail from Blah";

$File = "/var/www/hosts/blah.com/httpdocs/testfile";;

$Handle = fopen($File, 'w');

fwrite($Handle, $ui);

fclose($Handle);
OUtput of the file is

"You rcvd a E-mail from Blah"

The $readonlyfields does not provide the value of the field if set as readonly type.

I also tried $values. Same exact thing.
TIA!!!

J
Jane 6/19/2008

Hi,
use $oldvalues array for this purpose.