Я вызываю perl-скрипт из формы в файле HTML (index.html).
<form method="post" action="cgi-bin/test.pl">
more cmds....
<input type="submit" align="left" value="Submit">
</form>
Скрипты perl выполняются успешно. но он остается в test.pl
Он не возвращается к index.html
. после скрипта perl необходимо выполнить еще много действий.
Как вернуть указатель выполнения обратно в index.html
?
Посмотрите на CGI #Generating a Redirection Header
print CGI->redirect('http://somewhere.else/in/movie/land');
Или перенаправить с помощью javascript window.location
print CGI->header() . qq{
<html>
<head>
<script>
window.location.assign("http://somewhere.else/in/movie/land")
</script>
</head>
<body>
<p>redirecting...</p>
</body>
</html>};