Description: Create a procedure called visitor_name that displays a form asking for the user's name. The action of the form should be a procedure called process_visitor_name.
CREATE OR REPLACE PROCEDURE VISITOR_NAME IS -------------------------------------------------------- -- FILENAME: visitor_name -- FILEDATE: 01.20.2003 -- CREATED BY: Susan Boardman -- DESCRIPTION: Paints form to request visitor name -- URL : visitor_name -------------------------------------------------------- BEGIN htp.p('<HTML> <HEAD><TITLE>Name, Please</TITLE></HEAD> <BODY> <H1>What is Your Name?</H1> <FORM NAME="visitor_name_form" ACTION="process_visitor_name" METHOD="POST"> <INPUT NAME="p_visitor_name" TYPE="text" > <INPUT TYPE="submit" VALUE="Save"> </FORM> </BODY> </HTML> '); EXCEPTION WHEN OTHERS THEN htp.p('An error occurred in VISITOR_NAME: ' ||SQLERRM); END;