Development

Documentation/fr_FR/book/1.0/10-Forms (diff)

You must first sign up to be able to contribute.

Changes between Version 5 and Version 6 of Documentation/fr_FR/book/1.0/10-Forms

Show
Ignore:
Author:
Saad.Tazi (IP: 74.56.92.194)
Timestamp:
06/06/07 03:24:34 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/fr_FR/book/1.0/10-Forms

    v5 v6  
    1818As explained in the previous chapter, you must use the `form_tag()` helper to create a form, since it transforms the action given as a parameter into a routed URL. The second argument can support additional options--for instance, to change the default `method`, change the default `enctype`, or specify other attributes. Listing 10-1 shows examples. 
    1919 
    20 Listing 10-1 - The `form_tag()` Helper 
    21  
    22     [php] 
     20''Listing 10-1 - The {{{form_tag()}}}'' Helper'' 
     21 
     22{{{ 
     23#!php 
    2324    <?php echo form_tag('test/save') ?> 
    2425     => <form method="post" action="/path/to/save"> 
    2627    <?php echo form_tag('test/save', 'method=get multipart=true class=simpleForm') ?> 
    2728     => <form method="get" enctype="multipart/form-data" class="simpleForm"action="/path/to/save"> 
    28  
     29}}} 
    2930As there is no need for a closing form helper, you should use the HTML `</form>` tag, even if it doesn't look good in your source code. 
    3031