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

Hi, Here is what I want to do.

Status
Not open for further replies.

sut

Programmer
Jun 6, 2001
12
0
0
US
Hi,
Here is what I want to do.
1. User enters data into HTML form.
2. The form in HTML calls cgi file to store the data in DBM files.
3. The cgi program stores the data
4. After storing data, it should automatically call another html.

The First 3 steps works fine, but I am not able to redirect to an html file.
I don't want to use
print "a(href ...") thing in the perl program. I do not want to give a link, the program should automatically go to html file.
Is there something in Perl like redirect (in ASP)?
Please tell me how to do this.


Thanks
S
 
No, Perl doesn't have anything like that.
What you need to do is have the perl output the html <META> tag for redirection. I don't have the syntax offhand for that tag, but that'll do the trick in the same way ASP does it.

-k
 
Just do this:
Code:
print &quot;Location: [URL unfurl="true"]http://www.somewhere.com\n\n&quot;;[/URL]
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top