Does anyone really like HTML forms? Seriously, just say no to HTML forms! Most of the IDEs and server-side technologies give you some visual tools to handle html form creation and validation but these tools lock you into specific technology and still leave the problem of cross-browser formatting up to the developer. After looking at Flex it seems like a potential answer to the cross-browser formatting problem and supports using whatever server-side technology you desire.
Here’s a quick sample to show you want can be done. The MXML source for a form is below. The form includes simple validation and will post to a web server that is running PHP. The post variables are echoed back to the Flex form.
How to deploy this example
1. Download SampleForm.mxml, edit the url in the httpservice to point to your web server and build the Flex project.
2. Download Form.txt, rename Form.txt to Form.php and move it to your web server
3. Preview the Flex form!
Flex MXML File
[The requested file http://threegerbers.com/examples/SampleForm.mxml could not be found]
PHP file to handle the response
[The requested file http://threegerbers.com/examples/form.txt could not be found]


