I am trying to include the file ra_require.pl in Alogin.pl - details are below.
This script is calling a subroutine from the cgi script below
They are both cgi scripts.
When I submit my request via a html form (let us call it login.html) - it is supposed
to call Alogin.pl, but it is not working.
Any ideas would be helpful.
Radhika
-------------
#!/usr/bin/perl
#Name of file is Alogin.pl
use strict;
use DBI;
use CGI;
require "ra_require.pl";
print_header();
---------------
This is script with the subroutine:
#!/usr/bin/perl
#Filename: ra_require.pl
#holds all header footer subroutines
use strict;
use DBI;
sub print_header
{
print "content-type:text/html\n\n";
print "hello world";
print <<EOF;
<head>
<title>test</title>
<link href="style.css" rel="stylesheet" type="text/css"
</head>
<body>
<table align="center" width="80">
<tr><td align="center" colspan="8"><img src="rh.jpg"></td></tr>
<tr bgcolor="#FFB057"><td><a href="tables.html">Table status</a></td>
<td><a href="Orders.html">New Orders</a></td>
<td><a href="kitchen.html">Kitchen</a></td>
<td><a href="bar.html">Bar</a></td>
<td><a href="Update.html">Update Order</a></td>
<td><a href="Payment.html">Bill creation</a></td>
<td><a href="reports.html">Reports</a></td>
<td><a href="inventory.html">Inventory</a></td>
</tr>
</table>
</body>
</html>
EOF
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]