Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML in button fields

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

    @mercime

    Avatar of fmeroney
    fmeroney
    Member

    @fmeroney

    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…

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    >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)

You must be logged in to reply to this topic.