Jump to content

How do I get "mailer.php" to open a page with no menubar, toolbar etc?


blastbum

Recommended Posts

Hi,

I'm a php noobie, so if I sound incompetent, that's because I am.  ;)

Here is the script that's on my "mailer.php" file:

[code]
<?php

// Grab our config settings
require_once($_SERVER['DOCUMENT_ROOT'].'/config.php');

// Grab the FreakMailer class
require_once($_SERVER['DOCUMENT_ROOT'].'/MailClass.inc');

// instantiate the class
$mailer = new FreakMailer();

// Set the subject
$mailer->Subject = 'Disclaimer Feedback';

// Body
$mailer->Body .= "\nDisclaimer: " . $_REQUEST['disclaimer'];
$mailer->Body .= "\nAgreement: " . ($_REQUEST['agree'] == '' ? "NO" : "YES");

// Add an address to send to.
$mailer->AddAddress('[email protected]', 'My Name');

if(!$mailer->Send())
{
// echo 'There was a problem sending this mail!';
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($__SERVER['PHP_SELF']) . "/error.php");
}
else
{
// echo 'Mail sent!';
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($__SERVER['PHP_SELF']) . "/statement.php");
}
$mailer->ClearAddresses();
$mailer->ClearAttachments();
?>
[/code]

How do I get "statement.php" to open with no menubar, toolbar etc?

Your help will greatly be appreciated.

Dan
Jeeva,

The code didn't work. My understanding is that this script goes in the header of the "statement.php" page? If so, then it didn't work.

play_,

I checked out "dynamicdrive.com" and the 'Chromeless window' script there only works if it's been launched from another html page (with Javascript). The issue that I'm having is that the "statement.php" page is being launched from the server-side "mailer.php" page (which is all in php). Any other ideas?

Your help is really, really appreciated.

Dan
Just copy this code and run it.

[code]<script language='javascript'>
function urlopen(url)
{
window.open(url,name,'height=285, width=390, left=40, top=40, toolbar=no, menubar=no, directories=no, location=no, scrollbars=no, status=no');
}
</script>

<!--u have to call this function through html-->
<a href="javascript:urlopen('mailer.php')">Mailer</a>
[/code]
OK, I don't think that is going to work.

For you to understand how this works, I'll need you to check out the actual pages online.

Go to this URL: [URL=http://www.ds-d.com/message.php]http://www.ds-d.com/message.php[/URL]

FYI: Just a precaution, you won't be able to copy and paste while the "statement.php" page is open. There's a javascript script on there that wipes the clipboard of the user viewing the page. Also, by clicking on the "Continue To Statement" button, I receive an email with your IP address notifying me that you have agreed to the disclaimer. So if you're a little spooked by that, then I've conveniently attached the files for you.

Many thanks once again.

Dan

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.