Form select and url encode

Author Message

laurent le cadet

Friday 20 November 2009 3:34:28 am

Hi,

This is a simple form but the url is encode.

The ouput for / is %2F

Is there something to do ?

<form action="">

<select name="">
{def $children = fetch( 'content', 'list', hash( 'parent_node_id', 198,
'class_filter_type', 'include',
'class_filter_array', array( 'folder' ) ) )
}
{foreach $children as $child}
<option value={$child.url_alias|ezurl}>{$child.name|wash()}</option>
{/foreach}
</select>

<input class="button" type="submit" value="OK" alt="Submit" />
</form>

Best regards.

Laurent

André R.

Friday 20 November 2009 5:58:42 am

Use method="post", when using get everything gets urlencoded.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 05:03:19
Script start
Timing: Jan 18 2025 05:03:19
Module start 'layout'
Timing: Jan 18 2025 05:03:19
Module start 'content'
Timing: Jan 18 2025 05:03:20
Module end 'content'
Timing: Jan 18 2025 05:03:20
Script end

Main resources:

Total runtime1.4383 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0469152.6250
Module start 'layout' 0.00480.0040 741.671939.4453
Module start 'content' 0.00881.4279 781.1172531.7109
Module end 'content' 1.43670.0015 1,312.82818.1641
Script end 1.4382  1,320.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2253160.0002
Check MTime0.00140.0939160.0001
Mysql Total
Database connection0.00040.029310.0004
Mysqli_queries1.382496.1147540.0256
Looping result0.00090.0649520.0000
Template Total1.404097.620.7020
Template load0.00220.154120.0011
Template processing1.401897.465020.7009
Template load and register function0.00010.009310.0001
states
state_id_array0.00160.110310.0016
state_identifier_array0.00170.120620.0009
Override
Cache load0.00180.1283270.0001
Sytem overhead
Fetch class attribute can translate value0.00110.074720.0005
Fetch class attribute name0.00200.139940.0005
XML
Image XML parsing0.00150.101220.0007
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00220.1507230.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs