[PHP] Re: Preview button to show PDF without submitting post data?

2009-11-08 Thread Carlos Medina
Dave M G schrieb: PHP Users, I have a page that generates a PDF document using PHP. It takes form data filled in by the user to fill out the PDF When the user clicks "submit", it emails that PDF document to the intended recipient. However, I would like to add a "preview" function as well. But

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

2009-11-08 Thread Dave M G
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 in a new window, and also outputs a PDF directly to the user so t

[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 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

Re: [PHP] Carriage Returns

2009-11-08 Thread Eddie Drapkin
On Sun, Nov 8, 2009 at 11:40 AM, John List wrote: > Dan Shirah wrote: >> >> Hello all, >> >> Basically I have a form with a .  The user can enter up to 5,000 >> characters in this text area. >> >> If the user just types text like: This is a test. >> >> And saves it, there's no problem. >> >> Howev

Re: [PHP] Carriage Returns

2009-11-08 Thread John List
Dan Shirah wrote: Hello all, Basically I have a form with a . The user can enter up to 5,000 characters in this text area. If the user just types text like: This is a test. And saves it, there's no problem. However if the user types: This Is A Test And saves it, the insert bombs. I've

[PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
The POSIX regex functions are currently marked as DEPRECATED in 5.3.0 and are due to be removed completely in PHP 6. I propose that instead of being dropped they be converted into wrappers for the equivalent PCRE functions. It does not matter how long various people have been preaching in vari

[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

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread John Black
The same can be said about the removal of magic_quotes(), it will break A LOT of old scripts. I am in the same boat, I did not keep up to date with the PHP developer plans and just found out about ereg when I installed PHP 5.3. I think it was handled properly by displaying warning messages befo

Re: [PHP] Carriage Returns

2009-11-08 Thread Nathan Rixham
Dan Shirah wrote: >> My guess is that you are getting an SQL error returned to you. What does >> that >> say? Is it talking about a broken SQL statement? >> >> Also, an example of the actual insert statement with example data would be >> helpful. >> >> >> > > I'm getting the generic error messag

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

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] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
"It is for the better"? How can you justify that? It is a problem that will cause a lot of headaches for a lot of users, yet the solution which I have proposed will remove that problem with only very little effort, yet still leave only one regex engine which has to be supported in PHP 6. You ha

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Eddie Drapkin
On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston wrote: > "It is for the better"? How can you justify that? It is a problem that will > cause a lot of headaches for a lot of users, yet the solution which I have > proposed will remove that problem with only very little effort, yet still > leave only on

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
That's an amateur fudge, not a professional fix. Besides, what happens if your hosting company won't let you install PECL extensions? -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Eddie Drapkin" wrote in message news:68de37340911081209p45577d46r70a3c194f1079...@mail.gmai

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Eddie Drapkin
On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston wrote: > That's an amateur fudge, not a professional fix. Besides, what happens if > your hosting company won't let you install PECL extensions? > > -- > Tony Marston > http://www.tonymarston.net > http://www.radicore.org > > "Eddie Drapkin" wrote in m

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
"Eddie Drapkin" wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston wrote: > That's an amateur fudge, not a professional fix. Besides, what happens if > your hosting company won't let you install PECL extensions? > >

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Robert Cummings
Tony Marston wrote: "Eddie Drapkin" wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston wrote: That's an amateur fudge, not a professional fix. Besides, what happens if your hosting company won't let you install PEC

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
"Robert Cummings" wrote in message news:4af7549d.1060...@interjinn.com... > Tony Marston wrote: >> "Eddie Drapkin" wrote in message >> news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... >> On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston >> wrote: >>> That's an amateur fudge, not

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Robert Cummings
Tony Marston wrote: "Robert Cummings" wrote in message Then you've got several options: 1) Don't upgrade PHP. Not an acceptable option. 2) Pick a different hosting provider. Not an acceptable optional. 3) Fix your scripts. The scripts aren't broken. It's PHP 6 that's going to be broken.

[PHP] Checkbox in PHP form

2009-11-08 Thread Ernie Kemp
Need some help here with checkboxes in an html form. My issue is I have a form that needs to be viewed with checkboxes filled in depending on the values in the table. I tried: value="PFDs" name=f_sequipment1>PFDs but the checkbox field is always checked. I thought of JavaScript al

[PHP] Re: Checkbox in PHP form

2009-11-08 Thread Manuel Lemos
Hello, on 11/08/2009 11:39 PM Ernie Kemp said the following: > Need some help here with checkboxes in an html form. > > > > My issue is I have a form that needs to be viewed with checkboxes filled > in depending on the values in the table. > > > > I tried: > > 'no') { echo "checked=yes";

[PHP] Connect to LDAP

2009-11-08 Thread Ashley M. Kirchner
Hi folks, I've never done any PHP->LDAP code writing (nor have I ever dealt with an LDAP server to begin with.) However I'm writing an app which requires verifying a user's credentials against an LDAP server. The admin of the server sent me the following snippet, however also made it

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Paul M Foster
On Sun, Nov 08, 2009 at 06:30:37PM -0500, Robert Cummings wrote: > Also, why support > two libraries for which one is obviously inferior in speed and > functionality? > Because Tony's Radicore framework has a bunch of ereg* calls in it. ;-} Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] Re: Checkbox in PHP form

2009-11-08 Thread Brian Hazelton
value="PFDs" name=f_sequipment1>PFDs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multilingual website, texts in external JavaScript problem

2009-11-08 Thread leledumbo
I need to create a multilingual website and my framework already gives me that facility. However, I also use JavaScript quite extensively and since XHTML 1.0 Strict doesn't allow inline script, I must use external .js file. The problem is in these scripts, there are strings that needs to be transl

Re: [PHP] Connect to LDAP

2009-11-08 Thread Devendra Jadhav
Yes. Correct On Mon, Nov 9, 2009 at 7:30 AM, Ashley M. Kirchner wrote: > > Hi folks, > > I've never done any PHP->LDAP code writing (nor have I ever dealt with an > LDAP server to begin with.) However I'm writing an app which requires > verifying a user's credentials against an LDAP server.