start again
 
has anyone here had experience using cgi-expert?
 
I am trying to call a file-upload app (created with cgiexpert) from a cgi (WebBroker) app.
 
cgi app provides a link to the upload prog as so:
 
Format('<a href="">Upload new document</a><p>',
            [iID])
 
my problem is, how do i get fileupload1.exe to recognize the Request.QueryFields.Values['ID']???
 
the help indicates that the TRequest/TResponse obj is only available in a TWebBrokerScript component's OnCustomProcedure. 
 
I tried to do some creating on the fly but i get an "abstract" error when i do that.
 
var
    request: TWebRequest;
    Response: TWebResponse;
begin

    request := TWebRequest.Create;
    Response := TWebResponse.Create(request);   
    try
        try
            if not
                CheckID(request.QueryFields.values['ID'], Response, 44) then    //here the compiler tells me "undeclared identifier - request, unless i create as shown
                exit;
            Do_Some_Stuff;
        finally
            request.Free;
            response.Free;
        end;                            //finally
    except
        on E: Exception do
        begin
            PutLine('Database Error = ' + E.Message);
            exit;
        end;
    end;                                //except
I thought i maybe able to replace request.queryfields.values['ID'] with
FormVariables.Values['ID']
but i cant get past the response error.
 
 
 
 
Tracey
Software Developer / Web Master
Logis
[EMAIL PROTECTED]
(025) 213-1065

Reply via email to