• Welcome to Simple Machines Community Forum. Please login or sign up.

Confirmation code

Started by Jeff B, February 14, 2018, 09:29:22 PM

Previous topic - Next topic

Jeff B

Could someone help me with some code for links such as these?  I'm in need of a confirmation alert. "Are you sure?"  as the buttons are easily clicked by mistake.  A best case sceario would be something that takes care of all similar links in the file.

        <a href="', $scripturl, '?action=friends;sa=approve;u=', $context['member']['id'],';', $context['session_var'], '=', $context['session_id'], '" class="social_profile_btn">
', $txt['approve_friend'], '
</a> <a href="', $scripturl, '?action=friends;sa=remove;u=', $context['member']['id'],';', $context['session_var'], '=', $context['session_id'], '" class="social_profile_btn_red">
', $txt['reject_friend'], '

Jeff B