Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what running cgi file and html together ?

Status
Not open for further replies.

dontu

Programmer
Mar 17, 2006
14
RO
Hi,
everyone

I have two file,one file html and two file cgi for a take over with file cgi of inside file html what can I do?
The two file must save in identical directory ?

File cgi

#!/usr/bin/perl -w
use CGI;
$query = new CGI;
print $query->header;

print $query->b("where did You Hear about US? <br>");
print $query->param('hear');

print $query->b("<br>Music Testes<br>");
print $query->param('type');


file html:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Custemer input</title>
</head>
<body>

<h1>Custemer Information</h1>
<hr size ="1">
<form action ="/scripts/userinfo.pl" method ="post" enctype =
"application/x- <h4>Where did you hear about us?</h4>
<select name = "hear">
<option value = "frien">Friend</option>
<option value = "mag">Magazin</option>
</select>
<h4>Music Test</h4>
<select name ="type" size = "4" multiple>
<option value ="rock">Rock</option>
<option value = "hm">Heavy Metal</option>
</select>
</form>
</body>
</html>


Regards,
Dontu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top