Hi

You can use a AJAX technique but, instead of using XMLHTTP requests,
you can use hidden iframes.

The key is, put an iframe inside your page, and make your form point
to that iframe (using the "target" tag). So, the iframe will process
the POST request and you need to decide what to do later: reload the
parent window, redirect the parent window to another view, or in error
case (missing values in form, bad validation) you can show an alert
message and your page will remain the same because the iframe was the
only one that changed his page.

Using this technique, you can avoid using "session" to store the data.

HINT: if the form is not valid, redirect always your iframe to a blank
page, otherwise you can expect the "resubmit" effect if someone hits
the back button.

If you want some code for clarification, i can send some examples


2007/9/5, rdpweb <[EMAIL PROTECTED]>:
>
> Hi All
>         I have developed a form using zend framework.When i click on submit
> button and id if due to validation some error message is displayed , at that
> time the values entered in text box will not be retained.
>         Is their any way to retain these values using zend functionality
> Regard,
> Rohit83
> --
> View this message in context: 
> http://www.nabble.com/how-to-retain-value-in-form-using-zend-tf4382298s16154.html#a12492599
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
http://web.xaviervidal.net
610.68.41.78

Reply via email to