----- Mensaje original -----
> I have a form that only has one textarea and one submit button (no
> filters
> and no validators). So far I haven't added any functionality to it but
> as I
> was trying it I noticed that quotes get added incrementally with every
> submit on the rendered textarea's content.
>
> If I enter a single quote, the first time I submit it I get \', the
> second
> time I get \\\', so on and so forth...
>
> Am I doing something wrong here?
>
> Thanks,
> Julian.
>
> ////////////////////////
> // Controller...
>
> $form = new TestingForm();
> $request = $this->getRequest();
>
> if ($request->isPost()) {
> $form->setData($request->getPost());
> }
>
> return array(
> 'form' => $form,
> );
>
>
> ////////////////////////
> // index.phtml
>
> <?php
> $form = $this->form;
> $form->setAttribute('action', $this->url('home'));
> $form->prepare();
> ?>
>
> <?= $this->form()->openTag($form); ?>
> <?= $this->formRow($form->get('text')); ?> <br/>
> <?= $this->formSubmit($form->get('submit')); ?> <br/>
> <?= $this->form()->closeTag(); ?>
Hi Julian,
Check your PHP magic quotes configuration, it must be disabled.
http://php.net/manual/en/security.magicquotes.disabling.php
--
Alayn Gortazar
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]