blastbum Posted January 16, 2007 Share Posted January 16, 2007 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 Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/ Share on other sites More sharing options...
play_ Posted January 16, 2007 Share Posted January 16, 2007 That is javascript.I think it's called Chromeless window. not sure. but i've seen tons of it on dynamicdrive.com Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-161822 Share on other sites More sharing options...
jeeva Posted January 16, 2007 Share Posted January 16, 2007 u can use this code[i]window.open(url,name,'height=285, width=390, left=40, top=40, toolbar=no, menubar=no, directories=no, location=no, scrollbars=no, status=no');[/i] Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-161827 Share on other sites More sharing options...
blastbum Posted January 16, 2007 Author Share Posted January 16, 2007 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 Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-161842 Share on other sites More sharing options...
jeeva Posted January 16, 2007 Share Posted January 16, 2007 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] Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-161849 Share on other sites More sharing options...
blastbum Posted January 16, 2007 Author Share Posted January 16, 2007 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] Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-161855 Share on other sites More sharing options...
play_ Posted January 16, 2007 Share Posted January 16, 2007 try using jeeva's code in the body, not header[code]window.open(url,name,'height=285, width=390, left=40, top=40, toolbar=no, menubar=no, directories=no, location=no, scrollbars=no, status=no');[/code] Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-162380 Share on other sites More sharing options...
blastbum Posted January 17, 2007 Author Share Posted January 17, 2007 No, it didn't work. Thanks for your effort. I'll try and work something else out. Link to comment https://forums.phpfreaks.com/topic/34383-how-do-i-get-mailerphp-to-open-a-page-with-no-menubar-toolbar-etc/#findComment-162515 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.