Re: [PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Phpster
On Nov 8, 2009, at 1:20 PM, Dave M G wrote: Nathan, Thank you for responding. yup.. forget the new window all together, if you have it set to download as an attachment then the user won't be taken away from the page; so no need for a new window at all. Right... so, we're all on boar

Re: [PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Dave M G
Nathan, Thank you for responding. > yup.. forget the new window all together, if you have it set to download > as an attachment then the user won't be taken away from the page; so no > need for a new window at all. Right... so, we're all on board with the goals. Now... how do I do that? The wh

[PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Nathan Rixham
Dave M G wrote: > Ashley, > > Thank you for responding. > >> I think you do, or where else would you show the PDF? Unless you force >> the PDF to download when the user clicks the preview button, you are >> left with the default option of the users browser, which will most >> usually be to displa

[PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submitting post data?)

2009-11-08 Thread Dave M G
Ashley, Thank you for responding. > I think you do, or where else would you show the PDF? Unless you force > the PDF to download when the user clicks the preview button, you are > left with the default option of the users browser, which will most > usually be to display the PDF in the browser win

[PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submitting post data?)

2009-11-08 Thread Ashley Sheridan
On Sun, 2009-11-08 at 21:38 +0900, Dave M G wrote: > PHP List, > > Okay, so I've got a nice situation where a form has a preview button as > well as a submit button. When the user presses "Submit", the page > reloads, and it emails a PDF. > > If the user presses "Preview", it launches a new page

[PHP] Re: die function

2005-03-23 Thread Barbara Picci
Hi all, just to give you another solution that I've successfully adopted: function die_script($errmsg) { $sendto = "[EMAIL PROTECTED]"; $from = "[EMAIL PROTECTED]"; $subject = "FAILED"; $message = "CONNECTION FAILED\nTYPE OF ERROR:\n" . mysql_error();

[PHP] Re: die function

2005-03-21 Thread Jason Barnett
Barbara Picci wrote: > Hi all, > > I have a machine that must insert in cron in a mysql db in another > remote machine. > The problem is that I cannot know if the connection in the first machine > (adsl) go down because no entry in the machine log is generated. I would > like to redirect the die fu

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
anything like this? Hugh - Original Message - From: "hugh danaher" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 9:41 PM Subject: Re: [PHP] Re: die! die! directory! > ok, I'll buy that, but. Now, in a

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
Thanks Jason, I'll give it a try too. Hugh - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 9:20 PM Subject: Re: [PHP] Re: die! die! directory! > On Saturday 09 February 2002 09:35, hugh d

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
e - From: "Larry Jeannette" <[EMAIL PROTECTED]> To: "'hugh danaher'" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 7:49 PM Subject: RE: [PHP] Re: die! die! directory! > This is a standard HTML question, not a PHP question. > > If you do

Re: [PHP] Re: die! die! directory!

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 09:35, hugh danaher wrote: > Phil, Thanks for the suggestion. I tried it and it worked the first time, > but as I changed to a second directory ./maps2/ it fell apart again. > > Also, what I didn't state at the start, was that map1.jpg is actually a > variable, $map.

[PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
Phil, Thanks for the suggestion. I tried it and it worked the first time, but as I changed to a second directory ./maps2/ it fell apart again. Also, what I didn't state at the start, was that map1.jpg is actually a variable, $map. It's just that when I was pounding on it, I settled on using har

[PHP] Re: Die

2001-12-11 Thread Jeremy Reed
Use IF statements to group code, and only use exit() statements when you want to stop execution/parsing. "Max" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > If I use die or exit() it break execution of php script but also > browswer stop parsing html