<!--- Query the database and then present a form for uploading the photo --->
<CFQUERY NAME="Actor" DATASOURCE="OWS">
SELECT NameLast,NameFirst,ActorID from Actors where 
ActorID=#Val(URL.ActorID)#
</CFQUERY>

<HTML>
<TITLE>Actor Photo Maintenance Form</TITLE>
<BODY BGCOLOR="#FFFFFF"> 
<CENTER>Actor Photo Maintenance Form</CENTER>
<HR>
<FORM ACTION="actorphoto3.cfm" 
ENCTYPE="multipart/form-data" 
METHOD=POST> 
<CFOUTPUT>
<INPUT TYPE="hidden" NAME="ActorID" VALUE=#Actor.ActorId#>
<B>
Actor ID: #NumberFormat(Actor.ActorId,'0000')#<BR>
Name: <CFIF Len(Trim(Actor.NameLast))>#Actor.NameLast#,&nbsp;</CFIF>#Actor.NameFirst#<BR>
</B>
</CFOUTPUT>
<BR>
Photo File to upload: <INPUT NAME="PhotoFile" SIZE=50 TYPE=FILE><BR>
<INPUT TYPE=SUBMIT VALUE="Upload the Photo">
</FORM>
</BODY>
</HTML>
