Skip to content

Tag: xhtml

PHP if statements inside of echo to create HTML option list

I have a HTML option list of 10 numbers. I want one of these options to be pre-selected based on a value retrieved from a database. If the retrieved value is 0 or FALSE then value=”0″ should be selected, if the retrieved value is 1 then value=”1″ should be selected, etc. I have looked …

How to make PDF file downloadable in HTML link?

I am giving link of a pdf file on my web page for download, like below The problem is when user clicks on this link then If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Adobe Reader. If the Adobe Acrobat is not installed then it pop-up to the user for