Including a form in a form

Author Message

Pascal France

Sunday 24 January 2010 11:39:40 am

Hi,

I have done a form which includes another form. Something like that:

 <form method="post" action={"content/action"|ezurl}>
<input 1>
<input 2>
{include uri='design:form/form_2.tpl'}
<input 3>
<input 4>
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/base")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</form>

The included form_2.tpl only adds some news input fields.

With this code, only input 1 to 4 are collected and sent by mail.

Is there a way to send the form_2.tpl input data ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:09:25
Script start
Timing: Jan 18 2025 16:09:25
Module start 'layout'
Timing: Jan 18 2025 16:09:25
Module start 'content'
Timing: Jan 18 2025 16:09:25
Module end 'content'
Timing: Jan 18 2025 16:09:25
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.9141152.6250
Module start 'layout' 0.00440.0023 740.539139.4453
Module start 'content' 0.00670.0065 779.984485.2422
Module end 'content' 0.01330.0023 865.226630.3047
Script end 0.0155  895.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002213.8313140.0002
Check MTime0.00106.2449140.0001
Mysql Total
Database connection0.00064.033610.0006
Mysqli_queries0.002013.146830.0007
Looping result0.00000.088810.0000
Template Total0.00159.710.0015
Template load0.00074.741110.0007
Template processing0.00084.940210.0008
Override
Cache load0.00053.147010.0005
General
dbfile0.001912.324580.0002
String conversion0.00000.032240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs