<div>Does your form builder function get any parameter? Do you use any of them in your query? Are you sure that they have the same values on every build?<br><br></div>
<div class="gmail_quote">On Jan 24, 2008 7:53 PM, Feijó <<a href="mailto:patrao@legendas.feijo.info">patrao@legendas.feijo.info</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000066" bgcolor="#ffffff">Yes, I'm using #multistep<br><br>I thought about that, $form been built more than one time. My test seens to point somewhere else.<br><br><br>look at this:<br><br><br>// my previous array $report, returned by db_fetch_array
<br>$report['name'] .= ' something'; // I insert 'something' into it<br><br> $form['saveit']['name'] = array(<br> '#type' => 'textfield',<br> '#title' => t('Name'),
<br><b> '#default_value' => $report['name'], <br></b><b> '#description' => $report['name'],<br></b><b></b><br><br>what should be the result from default_value and description? The same? No, look:
<br><br>
<div><label>Nome: </label><input maxlength="50" size="30" value=" something" name="name">
<div>Array ( [name] => test something ) </div></div>
<div><label><br></label></div><br>'something' shows on both outputs, but 'test' only in #descrtption. If is the SAME source ($report['name']), where is 'test' ??? I'm geting crazy with that :P
<br><br>I can provide a demo site if its a good idea.<br><br><br>Feijó<br><br><br>Tao Starbow escreveu:
<div class="Ih2E3d">
<blockquote type="cite">Probably means your #value is getting set through some other mechanism. FormAPI can be pretty subtle at times. I seem to remember having a similar problem when I was playing around with #multistep, but I don't remember how I fixed it.
<br><br>good luck, <br>-tao <br><br></blockquote></div></div></blockquote></div><br>