Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

cgi file can not invoked?

the following is a perl file, but why I click the submit button, the registration.cgi file can not invoked?

#!/bnr/projects/pegasus/perl5

require "cgi-lib.pl";


#&handle_cmd_line;
print STDOUT "Content-type: text/html\n\n";



&ReadParse(*values);

print"<html>

<head>
<title> regitstatin</title>
</head>

<body bgcolor=\"#FFFFFF\">
<form METHOD=\"POST\" action=\"/cgi-bin/process/hctu/she/registration.cgi\">




<input name='name1' value=$values{'name'}>
<input  name='employee1' value=$values{'employee'}>
<input  name='location1' value=$values{'location'}>
<input  name='job_title1' value=$values{'job_title'}>
<input  name='lob1' value=$values{'lob'}>
<input  name='dept_loc1' value=$values{'dept_loc'}>
<input  name='project_num1' value=$values{'project_num'}>
<input  name='E_mail1' value=$values{'E_mail'}>

<!---<input name='name1' value=$values{'name'}>-- >
<!---<input  name='employee1' value=$values{'employee'}>-->
<!--<input  name='location1' value=$values{'location'}>-->
<!--<input  name='job_title1' value=$values{'job_title'}>-->
<!--<input  name='lob1' value=$values{'lob'}>-->
<!--<input  name='dept_loc1' value=$values{'dept_loc'}>-->
<!--<input  name='project_num1' value=$values{'project_num'}>-->
<!--<input  name='E_mail1' value=$values{'E_mail'}>-->

<input TYPE=\"button\" VALUE=\"Submit Application\" >

</form>
</body>
</html>
";
0
she2
Asked:
she2
1 Solution
 
mattropeCommented:
Instead of using the BUTTON input type field, use the SUBMIT input type at the bottom of the form:

<input TYPE=\"submit\" VALUE=\"Submit Application\">

A BUTTON only does something useful if you have JavaScript code attached to it.
0
 
she2Author Commented:
thank you very much for your help, it is excellence!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now