For now I have settled with:

[code]

<input name="data[Job][salary]" type="text" value="<?php echo
$job['Job']['salary']?>" id="JobSalary" />

[/code]

This works but if validation fails the elements value is not filled
in.

:S

On Jul 11, 12:16 pm, Adrian <[EMAIL PROTECTED]> wrote:
> Hey, thanks for the reply
> I tried this but it is rendered as " &pound; " when used as a form
> element value.
>
> On Jul 11, 11:23 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]>
> wrote:
>
> > Did you try putting the pound sign as an entity? i.e. &pound; ?
>
> > Adrian wrote:
> > > Hi,
>
> > > I am developing a simple job search site in CakePHP 1.2 and I have a
> > > problem with the text form helper. When editing a job I have a text
> > > box to enter a salary e.g. "�24,000-�30,000 a year" so I have used the
> > > form helper in my edit view like this:
>
> > > [code]
>
> > > <?php echo $form->text('Job.salary', array('value' => $job['Job']
> > > ['salary']))?>
>
> > > [/code]
>
> > > This gives me an empty text box if $job['Job']['salary'] contains a �
> > > sign, if I enter anything without a � sign it's fine. Does anyone know
> > > a good way of correcting this? I tried using the clean function but it
> > > doesn't strip � signs out. Also I don't think this happened in 1.1.
>
> > > Any help would be appreciated.
--~--~---------~--~----~------------~-------~--~----~
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