• Resolved slevine42

    (@slevine42)


    Is it possible to pass a variable with a button?

    I have a button on a page with a user profile. When you press the button I made it takes you to a contact form. I’d like to pass info from the profile to the contact form.

    So is there a way to assign info to a variable and then pass this with the button click to the new url?

    Many thanks.

    Scott

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    You can add variables to the button click, but you have to get that data and read it to the form somehow by yourself.

    Via PHP:
    <?php echo do_shortcode('[maxbutton id=1 url=http://example.com]'); ?>

    If you are not familiar with PHP, there is no real way.

    It doesn’t sound logical though since you can pull the user data of the logged in users quite easy via WordPress functions.

    • This reply was modified 8 years, 11 months ago by Bas Schuiling.
    Plugin Author maxfoundry

    (@maxfoundry)

    Can you mark this resolved @slevine42 ?

    Thanks,

    Bob

    Thread Starter slevine42

    (@slevine42)

    Please mark it as resolved.

    Many thanks.

    Plugin Author maxfoundry

    (@maxfoundry)

    You bet.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Pass Variables’ is closed to new replies.