MyBB Community Forums

Full Version: run php file by clicking html button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,


<a class="button fullwidth" href="$example.php"</a>

When you click the button, the php file will run and it will go to the link I have created, can you help me ?
you can set href by path or URL.
example  :

 <a class="button fullwidth" href="/path/example.php"</a>
 or
<a class="button fullwidth" href="https://yourdomaon.com/example.php"</a>
or if using this code in mybb template you can use $mybb->settings['bburl'] for forum URL
<a class="button fullwidth" href="{$mybb->settings['bburl']}/path/example.php"</a>