"Dillon, John" wrote: > >I´m new with perl. I need to write a program that reads data out of a form > >sent via internet and is able to interpret the data. > >I have written the form in html. Is perl right for the other parts? How can > >I do this easyly? Are there any pre-witten programs or modules existing for > >that? > **************************************************************************** > ** > > PHP is what I use. www.php.net is easier than anything I've found on perl. > See also database language on the slightly confusing www.mysql.com. PHP > database query looks like this: > > $myquery = "SELECT table.field FROM table WHERE table.field = > '$variable'";
I trust PHP doesn't force you to write those extraneous table identifiers in a query like this. Standard SQL should require the table name only in cases of ambiguity--where more than one table have a field of the same name. > While this is off-topic re Perl, it's also a good idea to have an > informative subject line, like: "Parsing HTML form output: to use or not to > use Perl?" that is the question! > No it wasn't. The question was somewhat vague, since it could be interpreted in a number of ways, but Perl is quite handy for reading data submitted through HTML forms. It also has modules available that can parse information from HTML tables from the source and translate into SQL. Perl even allows one to generate confusion and m,isery for oneself through the use of literals as variable names. With the Perl community, though, you can count on someone to say "Don't do that." Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]