Vote count:
0
I have a perl script that calculates a boolean and I want to send this back to my HTML page (without using embedded HTML to create a new page) so I can do things with it in JS. Don't think I really need to include the Perl script but I will anyway
Perl:
#! \xampp\perl\bin\perl.exe -w
require "dbfunc.pl";
use warnings;
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
$busFull = 0;
$dbh->do("SELECT JourneyDate,JourneyID,SeatsTaken FROM $booked");
if ($date == $JourneyDate)
{
if ($jid == $JourneyID)
{
if($seats + $SeatsTaken > 50)
{
$busFull = 1;
}
}
}
asked 30 secs ago
How to pass Perl variable back to HTML?
Aucun commentaire:
Enregistrer un commentaire