How tocall php file using hyperlink tag inside perl script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santhanalakshmi
    New Member
    • May 2009
    • 147

    How tocall php file using hyperlink tag inside perl script?

    Hi,
    I installed Xampp on my server(windows 2003).I am having perl script(i.e cgi program).Inside cgi program, i wants to use HTML HYPERLINK-that should points to my PHP program and plus i wants to pass one parameter to this hyperlink.

    Is it possible to call PHP script?If is it possible means, please see my line coding
    Code:
    print "<tr><td>";
    	print "&nbsp&nbsp&nbsp&nbsp<a href=c:/xampp/htdocs/test.php?emp=$id target=workwind>Uploading</a>";
    	print "</td></tr>";
    In abouve, if i need to made any changes means please give your coding.Then how can i get the parameter emp=$id in test.php. Please help me out.Please check my PHP path also.
    Last edited by Niheel; May 17 '11, 03:21 PM.
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    Using xampp the web-root is actually htdocs so the address string should be
    Code:
    <a href="http://test.php?emp=$id" target="workwind">Uploading</a>
    The quotes are needed where shown for the browser to parse.
    Last edited by miller; May 18 '11, 03:26 AM.

    Comment

    • santhanalakshmi
      New Member
      • May 2009
      • 147

      #3
      k thanks ....lets i try it and tell you if i still facing any error means. then it is possible to call php file from cgi script.

      Comment

      Working...