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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi - actions in web server application(anyone?)

Status
Not open for further replies.

Celetron

Programmer
Sep 18, 2002
4
GR
I am trying to build a server side program using Delphi 6. The program has two parts: 1st to evaluate a form and 2nd if the form is valid to proceed with emailing the form's information.
Is it possible to build it in two different actions (let say "Evaluate" and "EmailForm") and connect these actions in such way that the email part is running only when the form is valid?

Many thanks in advance for you answer
 
Why not the following:

function Evaluate(AForm: TStrings): Boolean;
begin
// Evaluate the form here, and set Result to false or true
end;

procedure EMailForm(AForm: TStrings);
begin
if Evaluate(AForm) then begin
// mailing...
end else begin
// error message...
end;
end;
Cheers,
Nico
 
Thanks for your answer nico. The truth is that i can do it in that way you are saying, but i was wondering if i can have these two functions in different actions and still have the same result. I am kind of new in cgi programming with delphi and i have not understand many things yet...

Cheers,
Christos
 
Well, as for CGI, don't feel alone. I think there are many people out there that do not understand...

As for your problem, I'm afraid you will have to wait for somebody else to react.
Cheers,
Nico
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top