I've a php script that accepts input and then displays info (after a mysql lookup).

If the user is browsing with IE and selects File->send->page as e-mail, the default
email client - outlook, pops up a window ready to send a copy of the page (in html).

The problem is that the message contains all the input and hidden variables that are used to
gather input.

I've tried this with various websites (eg this) and notice that hidden fields are also displayed.
Sometimes (eg phpmyadmin) outlook places the page as an attachment (why ?).

I know I can (andwill) send the email direct from my php script. Even so I still would like to
be able to control - or stop the user from seeing this. Maybe I have to first create a seperate html
file on my server that gets passed from IE to outlook.

Thanks for your reply gesf, I tried your suggestion but the mail arrives as displayed by outlook.
I think the problem is that the file is passed to outlook the form variables are unknown.
The following demonstates the problem (save as 'thisfile.php'). The script has 3 states:
input, display, print , if you try to email from ie (menu file/send/page as email) in any
state, the 'input state' part will always be displayed in the email body.

case 'print': echo "<p> This is the printable version, displayed in a new window, with no buttons or input boxes</p>"; echo "<p> You entered: ".$_POST['someinput']."</p><br>"; echo "<p> Click <b>'File / Send / Page by E-mail..'</b> to send this page as email.</p>"; ?><?php break;

} // end switch?></form>

</body></html>

By the way, to create a new window from the onclick print button, the target is set to '_preview' in the above, does anyone know how '_preview' differs from '_blank' ?