Changes between Version 3 and Version 5 of Ticket #2234


Ignore:
Timestamp:
03/31/2015 12:01:18 PM (5 years ago)
Author:
sebastian
Comment:

I just checked again how the contact form on eyeo.com is actually integrated. If JavaScript is enabled the form is submitted with an XMLHttpRequest and the response text is nicely shown below the form (it can be styled without any restrictions there). However, if JavaScript is disabled the form still works but the user is redirected to the plain text response. Sounds good to me. So let's do it the same way here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2234

    • Property Ready set
  • Ticket #2234 – Description

    v3 v5  
    77 
    88=== What to change === 
    9 Implement a WSGI app served by the multiplexer that handles email addresses sent as form data. The email address will be given by the `email` form field (one email address per request). Those addresses must be stored in a persistent file on the disk, one line per email address (this will be compatible with CVS). Moreover, the file needs to be locked for writing to avoid problems when concurring requests try to access it at the same time. 
     9Implement a WSGI app served by the multiplexer under `/submitEmail` handling email addresses sent as form data in a `POST` request. The email address will be given by the `email` form field (one email address per request). Those email addresses must be stored in a persistent file on the disk, one line per email address (this will be compatible with CVS). Moreover, the file needs to be locked for writing to avoid problems when concurring requests try to access it at the same time. Once the email address were successfully stored a response with the text "Thanks for your submission! We'll notify you before the launch." should be sent.