Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: HTML in button fields

@shanebp

Moderator

>You cannot use PHP in the button url field, only HTML.

You mean the onClick parameter?

Why not? Something like
`
global $bp;
$this_url = $bp->loggedin_user->domain . ‘profile/edit/group/1’;
<input type=button onClick="location.href=''” value=’edit profile’>
`

I prefer to use this approach
`

<a id="some-other-value" href="” title=””>

`

If you want to include a nonce, it’s a bit more complicated.

Skip to toolbar