How to direct a script to a new web page after a script got completed?

Hi ,
I have a cgi code with shell script on it.I am submitting a form in the first.cgi.These values are posted to second.cgi.Second.cgi do some process with these values.
After that i want to direct my page from second.cgi to first.cgi.
What is the command i can use from cgi(shell) script?

Regards,
Raj

It really depends on what you're doing with those scripts, but basically use the CGI module, like this :

Copied from the net.....

thanks for the reply.The above script will work for perl script but i am using shell script where these command wont work.Can you tell me the shell equivalent for the above perl script?