<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
I already try with print_r !<br>
<br>
it shows the content "array(['name'] => 'name test')" in
#description and #value, but never on #default_value<br>
<br>
The name field is varchar(50), with 'name test'. Just it.<br>
<br>
Yesterday a PHP expert was here, he take a look at this, we try a lot
of possibilities, no clue whatsoever<br>
<br>
It cant be explained :)<br>
<br>
<br>
Jakob Petsovits escreveu:
<blockquote cite="mid:200801241602.38642.jpetso@gmx.at" type="cite">
<pre wrap="">On Thursday, 24. January 2008, Feijó wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> If I try
'#default_value' => 'test ' . $row['name'],
only test apears!
</pre>
</blockquote>
<pre wrap=""><!---->
Imho, that behaviour suggests that something is wrong with $row['name'] and
less with Form API itself. (Because string concatenation fails even before
the Form API gets the value passed over.)
Not sure, but maybe print_r($row) and/or gettype($row['name']) reveals some
useful information...
</pre>
</blockquote>
</body>
</html>