• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3195
  • Last Modified:

PHP Hyperlink

Is there any possible way for me to call a php function with a hyperlink or something similar too it?
1 Solution
if you mean like when a user clicks a link or button from your page the answer is no

you can do something like this:
<a href="myscript.php?function=myfunction">Click me</a>
and in your php add
if ($_GET['function'] == 'myfunction')
Below is the answer... enter url: http://domain/f.php?f=abc ........ and you will see. :)

// f.php
  function abc () {
    echo "ABC";

  function xyz () {
    echo "XYZ";

  $v = $_REQUEST["f"];


Best of luck.
Zeman4323Author Commented:
ok, thanks, didnt think an actual hyperlink was possible, but your way will work perfectly, thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now