swatisonee Posted May 12, 2010 Share Posted May 12, 2010 hi, I have a table as detailed below. When a user clicks on <a href="include/salesimages/GRPIMG.jpg "> i want that it will open the following file "<a href=\"group1.php?Userid=$userid\"> <? echo "<a href=\"group1.php?Userid=$userid\">New Group</a>";?></td> is my original code. Basically the words New Group in the above code should be replaced by the image. How do I do this please ? Many thanks:Swati <td width=165 style='width:99.25pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=MsoNormal><b><span style='font-family:"Tw Cen MT";color:white'><a href="include/salesimages/GRPIMG.jpg"> <span style='color:white'><img border=0 width=32 height=37 src="include/salesimages/GRPIMG.jpg"></span></a></span></b></p> </td> Quote Link to comment https://forums.phpfreaks.com/topic/201469-how-do-i-write-a-code-where-clicking-on-image-leads-to-a-php-file/ Share on other sites More sharing options...
phpchamps Posted May 12, 2010 Share Posted May 12, 2010 <a href="group1.php?Userid=$userid"><img border=0 width=32 height=37 src="include/salesimages/GRPIMG.jpg"></a> Quote Link to comment https://forums.phpfreaks.com/topic/201469-how-do-i-write-a-code-where-clicking-on-image-leads-to-a-php-file/#findComment-1056985 Share on other sites More sharing options...
swatisonee Posted May 12, 2010 Author Share Posted May 12, 2010 Done ! Thanks so much ! Quote Link to comment https://forums.phpfreaks.com/topic/201469-how-do-i-write-a-code-where-clicking-on-image-leads-to-a-php-file/#findComment-1057081 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.