Sent by Gary Wood on 09/28/2002 08:42:29 AM:
When I do a Rebuild Project with Recompile all files on I get the following error message:
Program c:\program files\foxweb\programs\epay\main.prg has the following errors:
Unknown READFILE - Undefined
Unknown MERGETXT - Undefined
Unknown URLENCODE - Undefined
The ContactMine sample works fine.
When I run mine I get:
Error in CGI Back-End Program
There was an error during execution of the Back-End CGI program. The error is:
User program produced no output.
Here is the program:
******************************************
* MAIN.PRG 1.0 *
******************************************
* Constants
#DEFINE RECORDS_PER_PAGE 10
#DEFINE CRLF CHR(13) + CHR(10)
******************************************
PROCEDURE main
STORE "1" to ee
STORE "" to eename, co_id, company
USE C:\epay\employee.dbf ORDER EE_ID
SET EXACT OFF
STORE ee TO gcSeekVal
SEEK gcSeekVal
IF FOUND( )
STORE ALLTRIM(first_name) + " " + ALLTRIM(last_name) to eename
STORE employee.company to gcSeekVal
USE C:\epay\company.dbf ORDER company_id
SEEK gcSeekVal
IF FOUND( )
STORE ALLTRIM(company.name) to company
ENDIF
ENDIF
html_out = MergeTxt(ReadFile('main_menu.frx'))
RETURN
The merge file is:
Content-type: text/html
<HTML>
<HEAD>
<TITLE>Gary's Timecard Main Menu</TITLE>
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">
</HEAD>
<body bgcolor="#cccccc">
<h1>Time Card Menu</h1>
<p>Employee: <<eename>><br>
<p>Company: <<Company>>
<p>This page was served on <%=DATETIME()%>.
<p>
<p>
<p>
</BODY>
</HTML>
Is this a programming problem or a setup problem??
Gary