Solved

cgi file can not invoked?

Posted on 2000-03-21
2
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

726 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