hey guys how to make these php html links codes possible. i have tried many ways and the links do not appear correctly.
echo "<a href="http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/1%20CLIST%20AEE2011.pdf"
onclick="window.open('http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/3%20AGO%20AEE2011.pdf')
window.open('http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/4%20CAB%20AEE2011.pdf')
window.open('http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/6%20PARL%20AEE2011.pdf')
window.open('http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/7%20PRESCO%20AEE2011.pdf')
window.open('http://www.mof.gov.sg/budget_2011/revenue_expenditure/attachment/21%20PMO%20AEE2011.pdf');"
>Government Administration Expenditure Details</a>";
Change your code to:
You need to escape quotes using backslash.
or
Use Herodoc:
Hope this helps you 🙂