Solved

cgi file can not invoked?

Posted on 2000-03-21
2
174 Views
Last Modified: 2013-11-18
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
Comment
Question by:she2
2 Comments
 
LVL 2

Accepted Solution

by:
mattrope earned 100 total points
ID: 2643041
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
 

Author Comment

by:she2
ID: 2643092
thank you very much for your help, it is excellence!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question