develooper Front page | perl.beginners | Postings from February 2002

Re: php and perl

Thread Previous
From:
Johnathan Kupferer
Date:
February 22, 2002 09:39
Subject:
Re: php and perl
Message ID:
3C768221.30805@gnuthought.com
In my humble opinion, it doesn't make sense to break up the script that 
generates the form and the one that validates it.  Its hard enough to 
maintain an application without having to worry about two scripts in two 
different languages for something as simple as presenting and validating 
a form.

You have access to all the form validation you should need using PHP. 
 PHP supports both POSIX and Perl style regular expressions.  You can 
find information about regular expressions in PHP at http://www.php.net

If you are simply looking for an excuse to bring perl into a project, 
then you should consider rewriting your form with perl, unless you have 
some grudge against the poor soul who will have to maintain the code.  ;-)

- Johnathan


Joyce Harris wrote:

> I have a php form and I need to do some data validation either before 
> inserting data into the database or comparing data in a textfield to 
> data in the database. It seems like the easiest way to do this is 
> using perl. How do you call a perl script from a php script.
>
> Thanks,
> Joyce





Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About