Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML in button fields

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mercime

    Participant

    @fmeroney

    Member

    Well in a sense, but it is different. You cannot use PHP in the button url field, only HTML. I did get the php redirect question resolved, but not the HTML redirect inside a buttons URL path…

    @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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML in button fields’ is closed to new replies.
Skip to toolbar