Forums / Developer / Form select and url encode

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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