# Form Helper postLink won't work with image

**URL:** <https://discourse.cakephp.org/t/form-helper-postlink-wont-work-with-image/2047>\
**Category:** Uncategorized\
**Created:** [February 12, 2017, 4:43pm UTC](https://discourse.cakephp.org/t/form-helper-postlink-wont-work-with-image/2047 "2017-02-12T16:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/marc/32/508_2.png) [@marc](https://discourse.cakephp.org/u/marc)\
**Post date:** [February 12, 2017, 4:43pm UTC](https://discourse.cakephp.org/t/form-helper-postlink-wont-work-with-image/2047/1 "2017-02-12T16:43:32Z")

</div>

```
echo $this->Form->postLink($this->Html->image("img/iconDelete_25.png"), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete this user?', $user->id)]);

```

The postLink Helper won’t work with the image Helper. Is this a bug or not allowed?  
The image path is correct but it will only show the alternative text.

---

<div class="post-metadata">

**Author:** ![marc](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/marc/32/508_2.png) [@marc](https://discourse.cakephp.org/u/marc)\
**Post date:** [February 12, 2017, 5:41pm UTC](https://discourse.cakephp.org/t/form-helper-postlink-wont-work-with-image/2047/2 "2017-02-12T17:41:09Z")

</div>

```
Argh... this is the solution.
<?php echo $this->Form->postLink(
					    $this->Html->image(
					        "hkw/iconDelete_25.png", 
					        ["alt" => __('Delete')]
					    ), 
					    ['controller' => 'clients', 'action' => 'delete', $user->id],
					    ['escape' => false, 'confirm' => __('Are you sure you want to delete this user?', $user->id)]
					)?>
```
