Please make note of this in the docs somewhere. I was just banging my head against the same wall.<br><br><div><span class="gmail_quote">On 12/10/05, <b class="gmail_sendername">Karoly Negyesi</b> <<a href="mailto:karoly@negyesi.net">
karoly@negyesi.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sat, 10 Dec 2005 23:18:11 +0100, Syscrusher <<a href="mailto:scott@4th.com">
scott@4th.com</a>> wrote:<br><br>First. The subject is wrong, there are no stupid questions. We all learn.<br><br>> displays correctly.<br><br>Good!<br><br><br>> 2. When a preview is submitted, I need to take the value that comes from
<br>> $_POST and edit it before the form is generated. This is where things<br>> are breaking down.<br><br>Not good.<br><br>> $form, but<br>> somehow it's getting set back to the original $_POST contents from that
<br>> field,<br>> between when I build the $form array and when that array is turned into<br>> HTML.<br>><br>> I've been all over the code, but I can't seem to find where that's<br>> happening.<br>><br>
> Can someone help? Thanks!<br><br>Well, the actual value is calculated from $_POST['edit'] values and<br>#default_value . If there is a _POST value, then it overwrites the<br>#default_value .<br><br>There are at least two solutions:
<br><br>a) You change $_POST<br>b) You add a #value to the form element in this case. Have you read the<br>documentation that you should never use #value? This is the exception.<br>However, be extremely cautious what you set here, it'll be sent back to
<br>the user.<br><br>Regards<br><br>NK<br><br>Ps. Ber, if I have not answered you, then sorry! I missed your letter.<br></blockquote></div><br>