Link to home
Start Free TrialLog in
Avatar of omeralfaroug
omeralfaroug

asked on

CGI Using Delphi..

How can i reply to the Request i recieved with the same page+its contens(i mean someone submit a form and there is an error in his data as duplicate login name so how to send a response with the same page and his previous information he use to enter,to avoid reentering information.
Avatar of omeralfaroug
omeralfaroug

ASKER

Listening:-)
i'am using CGI Stand Alone Executable,TWebmodule,so which methods i can use and how?.
in another meaning i need the function or procedure which can do the same function of the Back Arrow in the web Browser(Explorer,Netscape...etc).
ASKER CERTIFIED SOLUTION
Avatar of geobul
geobul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi geobul,
let me try and i will confirm u.
thanks goebul,
but would u tell me how can i do it without sending button to the user as to press it,i mean in the follwing code of delphi using CGI:
Response.content:=?
is it possible!
Hi,
There is a way to send nothing. I mean if you find an error, you can tell the server that there is no response and the client browser will stay on the page of the request.

{ some web action }
.....
{ Here you already know that there is an error }
  Response.StatusCode := 204;
  Handled := True;
  Response.SendResponse;
......

That's all. Setting status code to 204 means that there is NO CONTENT.

I hope that this is clear.

Regards, Geo