Solved

cgi file can not invoked?

Posted on 2000-03-21
2
171 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now