I have three XML RESPONSE files generated from another application.
I'd like to create a PHP search page -with a simple text box and "search" button. When a user enters text into the search field, the page will search the first and last name fields for matches and display these fields plus the extension number field in a table (it must search all three files). I am having a LOT of trouble coding this, but I think using SimpleXML will suffice.
I need coding help from the top down on this one - as I generally code in VB.net.
An example of the XML response file is:
<response method="switchvox.extensions.search">
<result>
<extensions page_number="1" total_pages="1" items_per_page="500" total_items="3">
<extension number="1111" status="1" can_dial_from_ivr="1" account_id="1446" display="John Smith" date_created="2009-12-23 11:57:36" type="sip" type_display="SIP Extension" first_name="John" last_name="Smith" email_address="jsmith@somedomain.com" template_id="1187" template_name="Basic User" phone_password_score="50" voicemail_password_score="40" lang_locale="en_us" title="" location="" profile_image_id="" profile_image_link="https://192.168.192.168/dl?cmd=profile_image&amp;cs=0&amp;id=0&amp;hash=de6de8233830fdc935aae4ffe7003a85" />
<extension number="1112" status="1" can_dial_from_ivr="1" account_id="1611" display="Jane Doe" date_created="2011-02-28 13:08:45" type="sip" type_display="SIP Extension" first_name="Jane" last_name="Doe" email_address="Jane.Doe@someotherplace.com" template_id="1186" template_name="Basic Station" phone_password_score="104" voicemail_password_score="40" lang_locale="en_us" title="Project Manager" location="1st Floor" profile_image_id="" profile_image_link="https://192.168.192.168/dl?cmd=profile_image&amp;cs=0&amp;id=0&amp;hash=de6de8233830fdc935aae4ffe7003a85" />
<extension number="1113" status="1" can_dial_from_ivr="1" account_id="1369" display="Roger Testerson" date_created="2009-12-16 12:23:28" type="sip" type_display="SIP Extension" first_name="Roger" last_name="Testerson" email_address="Roger_Testerson@thisdomain.com" template_id="1187" template_name="Basic User" phone_password_score="50" voicemail_password_score="40" lang_locale="en_us" title="" location="" profile_image_id="" profile_image_link="https://192.168.192.168/dl?cmd=profile_image&amp;cs=0&amp;id=0&amp;hash=de6de8233830fdc935aae4ffe7003a85" />
</extensions>
</result>
</response>