Hi,
> Fwd: CDS-Invenio: problème avec WebSubmit
>
> Hello everyone,
>
> I just received this question from a student at EIF. Does anyone know the answer to Matthias' question?
>
> Translation:
> Matthias created a 4 pages submission. As he finishes filling the first page of fields, and clicks on the "next page" link, one of these occurs:
>
> Firefox => Pages reloads, every field being empty
> Konqueror, MSIE => redirect to home
I encountered the same problem some time ago and found a workaround.
What happens is that the POST request to /submit is redirected to a GET /submit/,
resulting in the form data being lost along the way:
POST http://host/submit
> 301 Moved Permanently
GET http://host/submit/
> 200 OK
A way to avoid this is to make the form's action attribute point to "/submit/", eg.
<form enctype="multipart/form-data" action="" method="post">
instead of
<form enctype="multipart/form-data" action="" method="post">
(see http://www.modpython.org/pipermail/mod_python/2007-June/023780.html)
Editing websubmit_templates.py with the aforementioned changes does the job, even though
it is perhaps not the best way to solve the problem.
Best regards
