views:

1323

answers:

3

hi i want to remove the url that gets printed on the bottom of the page

like:

yomari.com/.../main.php?sen_n

how can it be omitted ?or prevent from getting printed

would appreciate any help

+3  A: 

Having the URL show is a browser client preference, not accessible to scripts running within the page (let's face it, a page can't silently print themselves, either).

To avoid "leaking" information via the query string, you could submit via POST

Rowland Shaw
+1 for that :) and the POST tip
Shoban
noooo ... POST is not an encryption mechanism - it's a hint about the possible side effects of the request.
troelskn
Instead of printhing a long multi line query string. I woul be happy to print just the url
Shoban
the query string is part of the url. if the url is too long, you should fix that instead.
troelskn
I didn't say it was an encryption thing -- it does remove the query parameters from the URL, which was a requested mitigation factor
Rowland Shaw
+2  A: 

I do not know if you are talking about a footer within your actual graphic or the url the print process within the browser is doing.

If its the url the print process is doing its really up to the browser if he has a feature to turn that off.

If its the footer information i would recommend using a print stylesheet and within that stylesheet to do

display: none;

For the particular ID or class of the footer.

To do a print stylesheet, you need to add this to the head.

<link rel="stylesheet" type="text/css" href="/css/print.css" media="print" />
Ólafur Waage
A: 

I would agree with most of the answers saying that its a browser settings but still you can achieve what you want via COM. Keep in mind that most browsers will still have issue with that and even IE will raise the COM security bar to users. So unless its not something you are offering within organisation, don't do it.

hash