>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'";
$result = mysql_db_query($db, $myquery, $connection) or die
("myquery failed.");
$arr = array();
$x = 0;
while(list($a) = mysql_fetch_array($result))
{
$arr[$x] = $a;
$x++;
}
Variables are GETed or POSTed automatically with the form on submit. You
can use regex's also.
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!
John
�������������������������������������������http://www.cantor.com
CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are
confidential. If you are not the named recipient please notify the sender and
immediately delete it. You may not disseminate, distribute, or forward this e-mail
message or disclose its contents to anybody else. Copyright and any other intellectual
property rights in its contents are the sole property of Cantor Fitzgerald.
E-mail transmission cannot be guaranteed to be secure or error-free. The sender
therefore does not accept liability for any errors or omissions in the contents of
this message which arise as a result of e-mail transmission. If verification is
required please request a hard-copy version.
Although we routinely screen for viruses, addressees should check this e-mail and
any attachments for viruses. We make no representation or warranty as to the absence
of viruses in this e-mail or any attachments. Please note that to ensure regulatory
compliance and for the protection of our customers and business, we may monitor and
read e-mails sent to and from our server(s).
For further important information, please read the Important Legal Information and
Legal Statement at http://www.cantor.com/legal_information.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]