Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Michael Kubler
I agree with Nathan. Always do server side validation, and if you have the skills, time, or are being paid then add javascript validation to make the user experience better. I have a general contact form which checks the input server side (PHP) and if there's something wrong then it indicates a

RE: [PHP] Re: How to Insert into DOMDocument

2008-12-06 Thread Shanon Swafford
>> Is there a way to make it create the following XML? >> >> >> >> >> >> >> >> >> I can't seem to find any dom functions to do this. >> >> Thanks in advance, >> Shanon >> >> > >DOMProcessingInstruction as such: > >error_reporting(E_ALL | E_STRICT); > >$doc = new DOMDocument(); >$doc-

[PHP] Re: How do you organise your PHP work ?

2008-12-06 Thread Nathan Rixham
franzemmanuel wrote: Hi ! I wanted to know how you organise your work when you develop a project ? - I have a checking list to control each file. - I make a diagram (with Impress). - And a CalcSheet to follow my variables. (examples : http://www.surleweb.biz/development.php). And you ? How do yo

[PHP] Re: How to Insert into DOMDocument

2008-12-06 Thread Carlos Medina
Shanon Swafford schrieb: I have the following code: #!/usr/bin/php -q formatOutput = true; $foo = $doc->createElement("foo"); $doc->appendChild($foo); $bar = $doc->createElement("bar"); $foo->appendChild($bar); $bazz = $doc->createElement("bazz"); $foo->appendChild($ba

Re: [PHP] Parsing Strings

2008-12-06 Thread Nathan Rixham
tedd wrote: At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote: OK, making good learning progress today. I have a string that is

Re: [PHP] Parsing Strings

2008-12-06 Thread VamVan
u can use split() or explode (). Thanks On Sat, Dec 6, 2008 at 9:27 AM, tedd <[EMAIL PROTECTED]> wrote: > At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: > >> How might I also parse and address like: SCOTTSDALE, AZ 85254 >> >> It has a comma and a space >> >> -Jason >> >> On Dec 5, 200

Re: [PHP] Parsing Strings

2008-12-06 Thread tedd
At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote: OK, making good learning progress today. I have a string that is: Jason Slack

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Nathan Rixham
Per Jessen wrote: Terion Miller wrote: I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to do with it W

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Per Jessen
Terion Miller wrote: > I have a huge form to validate and wonder which is better javascript > validation or php, the page is a php page, I actually put js > validation on it but then it stopped working (stopped inserting into > the db) not sure if that had anything to do with it > What does ev

[PHP] Re: How to Insert into DOMDocument

2008-12-06 Thread Nathan Rixham
Shanon Swafford wrote: I have the following code: #!/usr/bin/php -q formatOutput = true; $foo = $doc->createElement("foo"); $doc->appendChild($foo); $bar = $doc->createElement("bar"); $foo->appendChild($bar); $bazz = $doc->createElement("bazz"); $foo->appendChild($bazz

Re: [PHP] Re: Convert .docx /.pdf file to .txt

2008-12-06 Thread Ashley Sheridan
On Sat, 2008-12-06 at 09:17 +, Colin Guthrie wrote: > 'Twas brillig, and Jagdeep Singh at 06/12/08 06:46 did gyre and gimble: > > Hi! > > > > I need a function to fetch text from docx file, but it is showing formated > > characters in output. I was using fopen, fgets etc function . > > > > I

[PHP] Re: Convert .docx /.pdf file to .txt

2008-12-06 Thread Colin Guthrie
'Twas brillig, and Jagdeep Singh at 06/12/08 06:46 did gyre and gimble: Hi! I need a function to fetch text from docx file, but it is showing formated characters in output. I was using fopen, fgets etc function . I want to fetch text from .docx and save it to .txt file Without special character

[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Ross McKay
On Fri, 5 Dec 2008 12:28:08 -0600, Terion Miller wrote: >I have a huge form to validate and wonder which is better javascript >validation or php, the page is a php page, I actually put js validation on >it but then it stopped working (stopped inserting into the db) not sure if >that had anything t