Hi all,
I have a doubt. This's a perl question.
I am keeping a html file in my server. The action for that form is to call a url(different domain). But it should not display
the URL in the browser. How can i do that?
I tried like this... but it failed..
Html
<HTML>
<HEAD><TITLE>One.... </TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">
<form method="post" action="/cgi-bin/o.pl" >
<input type="submit" name="submit" value="submit">
</form>
</BODY>
</HTML>
o.pl
#!/usr/bin/perl
$dest = "http://yahoo.com";
print "Status: 302 Found\n" . "Location: $dest\n\n";
Using this example,
My idea is to display the yahoo page, but in the browser yahoo.com will not be displayed.
How can i do that?
Please try to give a solution for this...
Thanks
SU
20030526 Edit by Corion: Added formatting
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.