run php file by clicking html button
#1
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 ?
Reply
#2
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>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)