I have email verification. Instead of link I want a button that a user can click. here is my code:
$confirmMailContent = "Thank you for registering. Please click <a href='[LINK]'>here</a> to confirm your email address";
It works, but instead of a clickable link I want a button. Any ideas? I tried
$confirmMailContent = "Thank you for registering. Please click <a href=<button type='button' name='btn-signup'></button>here</a> to confirm your email address";
It didn’t work.
Advertisement
Answer
Just use css in the way you wish to style the link as button, here’s an example:
.link-button { border: 1px solid #ccc; padding: 6px 12px; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; border-radius: 4px; text-decoration: none; color: #fff; background-color: #337ab7; border-color: #2e6da4; } .link-button:hover, .link-button:focus, .link-button:active { color: #fff; background-color: #204d74; border-color: #122b40; }
Thank you for registering. Please click <a href='[LINK]' class="link-button">here</a> to confirm your email address