title: Calling a PHP function through an HTML Link (no form)
body: <p>I have a PHP Function that I would like to integrate into my (existing) web page.  Further, I would like it to execute when the user clicks a link on the page.  The function needs to accept the text of the link as an input argument.</p>
  
  <p>Everything I've researched for sending data to a PHP script seems to involve using forms to obtain user input.  The page needs to accept no user input, just send the link-text to the function and execute that function.  </p>
  
  <p>So I guess the question is two-part.  First, how to execute a PHP script on link click.  And second, how to pass page information to this function without the use of forms.  I am open to the use of other technologies such as AJAX or JavaScript if necessary.</p>
  
  <p>EDIT:: Specifically what I am trying to do.  I have an HTML output representing documentation of some source code.  On this output is a series of links (referring to code constructs in the source code) that, upon being clicked, will call some python function installed on the web server (which leads me to think it needs called via PHP).  The python function, however, needs the name present on the link as an input argument.</p>
  
  <p>Is there some sort of interaction I could achieve by having JavaScript gather the input and call the PHP function?</p>
  
  <p>Sorry for the vagueness, I am INCREDIBLY new to web development.  If anything is unclear let me know.</p>