You are here: =?iso-8859-1?Q?Re:_[PHP]_OT_??:_Form_posting_without_leaving_form?= « PHP « IT news, forums, messages
=?iso-8859-1?Q?Re:_[PHP]_OT_??:_Form_posting_without_leaving_form?=

Posted by php on 06/14/05 00:16

I did this using PHP and Javascript not too long ago. My solution may
not be elegant but it works.

I set up an inline frame on a page that had my large form. I set the
soruce of the frame to my processing page and set the display style of
the frame to none using CSS. Then for all the form elements, I set an
onchange event that called a javascript function. The function creates
a query string that is passed to the source page of the frame.

"Kall, Bruce A." <kall@mayo.edu> wrote on 06/13/2005, 07:28:44 PM:
> This is perhaps a javascript question....
>
> Is there a way to post a form to a url without having a user submit from
> the form?
>
> I have a php web page that is a detailed form with a lot of fields. If
> the user does some work on this form and let's it sit, their session can
> time out (I had this happen to the user after it sat for 2 hours). Is
> there some way to have a timer in the page and have partial form results
> sent back to the server, but still leave the form on the screen as-is?
> In other words, I want to have the client periodically post the form
> data back to the server, but leave the same web page displayed.
>
> Thanks,
> Bruce
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация