In my XML file each record of letter has an ID such as:

<letter id="1">
<title>Test</title>
<author>X</author>
<recipient>X</recipient>
<text>testing</text>
</letter>
<letter id="2">
<title>Test</title>
<author>X</author>
<recipient>X</recipient>
<text>testing</text>
</letter>

I have an html page or I can change it to PHP whichever is easiest to do this, but I would like to have users being able to search by this id. Is this possible, if so can someone please leave a quick example of code in either javascript or PHP if it's possible in either of these languages. Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.