php-general Digest 9 Nov 2009 00:23:29 -0000 Issue 6433

2009-11-08 Thread php-general-digest-help
php-general Digest 9 Nov 2009 00:23:29 - Issue 6433 Topics (messages 299695 through 299712): Die Page, Die! (Was: Preview button to show PDF without submitting post data?) 299695 by: Dave M G 299696 by: Ashley Sheridan 299697 by: Dave M G 299701 by: Nathan

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

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

[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 in a new

[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

Re: [PHP] Carriage Returns

2009-11-08 Thread Eddie Drapkin
On Sun, Nov 8, 2009 at 11:40 AM, John List johnl...@gulfbridge.net wrote: Dan Shirah wrote: Hello all, Basically I have a form with a textarea.  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

Re: [PHP] Carriage Returns

2009-11-08 Thread John List
Dan Shirah wrote: Hello all, Basically I have a form with a textarea. 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

[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

[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 display the PDF

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

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 message: Prepare fails (E

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

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 mar...@autotelic.com 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...

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

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 t...@marston-home.demon.co.uk 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,

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 oorza...@gmail.com wrote in message

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 t...@marston-home.demon.co.uk 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

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

2009-11-08 Thread Tony Marston
Eddie Drapkin oorza...@gmail.com wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston t...@marston-home.demon.co.uk wrote: That's an amateur fudge, not a professional fix. Besides, what happens if your hosting company

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

2009-11-08 Thread Robert Cummings
Tony Marston wrote: Eddie Drapkin oorza...@gmail.com wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston t...@marston-home.demon.co.uk wrote: That's an amateur fudge, not a professional fix. Besides, what happens if

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

2009-11-08 Thread Tony Marston
Robert Cummings rob...@interjinn.com wrote in message news:4af7549d.1060...@interjinn.com... Tony Marston wrote: Eddie Drapkin oorza...@gmail.com wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston

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

2009-11-08 Thread Robert Cummings
Tony Marston wrote: Robert Cummings rob...@interjinn.com 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

[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: INPUT class=text id=myCheck1 type=checkbox ?php if ( $row[33] = 'no') { echo checked=yes; } else { echo '';

[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: INPUT class=text id=myCheck1

[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
input class=text id=myCheck1 type=checkbox ?php if ( $row[33] == 'no') { echo checked=checked; } ? value=PFDs name=f_sequipment1/bfont size=2PFDsb -- 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

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 ash...@pcraft.comwrote: 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