The form helper doesn't remember anything. When you submit the form,  
the data is being saved in $this->data. The FormHelper just fills in  
any matching values from $this->data when creating a form input. So  
your data takes a roundtrip Form > Controller ($this->data) >  
FormHelper. Is there anything being done to $this->data anywhere on  
the way that may cut off the text?

Alternatively, FormHelper makes a lot of assumptions about what kind  
of input you want from various sources, including database schema etc.  
It might be that the field in the database can only hold one  
character...? (total stab in the dark)

On 9 Sep 2008, at 12:32, trustfundbaby wrote:

>
> I have a simple form that I setup that looks something like this
>
> <-- snippet --->
>    <?php echo $form->input('eaddress', array('class' => 'input_text',
> 'label' => 'Your email Address: <em>*</em>', 'div' => false)); ?>
>
>    <?php echo $form->input('phone', array('class' => 'input_text',
> 'label' => 'Phone Number: ', 'div' => false)); ?>
> <--- end snippet -->
>
> The form submits correctly and everything, but it only seems to
> remember one letter of whatever I type into that field when the page
> reloads.
>
> So if I type in "ssssasdfasdfasf" in the eadress field ... only 's'
> shows back up.
> Is there a way to fix this?
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to