kat35601 Posted June 11, 2015 Share Posted June 11, 2015 echo "<td style='text-align:center'><a href='kk_schedule_subreport.php?sn=$uompScheduleNumber&itm=DR'>$PRT_FR</a></td>"; I this code itm=DR what would be the correct syntax for that I tried " and ''' but it did not work. Quote Link to comment Share on other sites More sharing options...
CroNiX Posted June 11, 2015 Share Posted June 11, 2015 I'm not understanding what you're after. Your link is syntactically correct assuming $uompScheduleNumber and $PRT_FR are defined somewhere before you output the link. It sends parameters "sn" and "itm" via GET. What exactly isn't working for you? What is wrong with what you have? How is it supposed to work? Quote Link to comment Share on other sites More sharing options...
Solution Barand Posted June 11, 2015 Solution Share Posted June 11, 2015 this topic is also at http://forums.phpfreaks.com/topic/296729-creating-a-link-and-passing-data-to-open-another-report/?do=findComment&comment=1513616. Are you talking about a defined constant? eg define("DR", '12345") If that is the case you either assign the value to a variable ($dr = DR) and use that same syntax or use concatenation with the constant echo "<td style='text-align:center'><a href='kk_schedule_subreport.php?sn=$uompScheduleNumber&itm=".DR."'>$PRT_FR</a></td>"; Quote Link to comment 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.