MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuale Utente Pagina 86

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 148
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 85
Example 5-2. Formtest.php
<?php
echo( "Thanks ".$_REQUEST['first'] );
?>
When
I run this example in Flex Builder it starts up with the
empty form. I then fill in the form and see something similar
to Figure 5-2.
When I click the Subscribe button the data is sent to the server.
The HTTP service then fires the result event. That runs some
code that I have defined in the HTTPService tag that will display
the lastResult in an alert box. Figure 5-3 shows the result.
It doesn’t get much easier than that!
Using the HTTPService Tag
The following is an embedded application created using Flex
Builder. Users can type a five-digit zip code, such as 80401, and
Figure 5-2. The form with my details in it
70 | Chapter 5:Working with the Server
Vedere la pagina 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 147 148

Commenti su questo manuale

Nessun commento