<CFCONTENT TYPE="text/vnd.wap.wml"><?xml version="1.0"?>

<cfquery name="results" datasource="Corporate_Directory">
SELECT Employee_ID, Employee_Last_Name, Employee_First_Initial, 
    Employee_Middle_Initial
FROM Employee_Information
WHERE Employee_Last_Name LIKE '#form.last_name#%'
</cfquery>

<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" 
    "http://www.phone.com/dtd/wml11.dtd" >


<wml>

    <card id="search">
        <p>
        
        <strong>Corporate Directory</strong>
        <br/>
        <strong>| Results |</strong>
        <br/>
        <cfif results.RecordCount EQ 0>
        No Matches
        <cfelse>
        <cfoutput query="results">
        <a href="detail.cfm?Employee_ID=#Employee_ID#">#Employee_Last_Name#, 
    #Employee_First_Initial# #Employee_Middle_Initial#</a>
        </cfoutput>
        </cfif>
        </p>
    </card>

</wml>