Aresti
Programmer
- Jul 3, 2008
- 2
HI I AM WRITTING A HTML WITH JAVASCRIPT, IT RETURNS SOMETHING FROM A PL, THE THING I DONT KNOWS IS WHY IT IS RETURNING ALL THE CODE INSTEAD OF THE PART I PUTED TO BE PRINTED
HERE IS THE WEBSITE
HERE IS THE PERL CODE
#!/usr/bin//perl
use CGI qw
standard);
use DBI;
$nombre = param ('nombre');
require "config.pl";
$dbh = bdatos();
$sth = $dbh->prepare("select * from clientesCA where nombre = '$nombre';");
$sth->execute;
my ($id,$nombre1,$direccion) = $sth->fetchrow();
print header;
print "Content-type: text/html\n\n";
print<<clientes;
<table style="border: 1px solid #000000">
<tr>
<td>
$id
</td>
<td>
$nombre1
</td>
<td>
$direccion
</td>
</tr>
</table>
clientes
HERE IS THE WEBSITE
HERE IS THE PERL CODE
#!/usr/bin//perl
use CGI qw
use DBI;
$nombre = param ('nombre');
require "config.pl";
$dbh = bdatos();
$sth = $dbh->prepare("select * from clientesCA where nombre = '$nombre';");
$sth->execute;
my ($id,$nombre1,$direccion) = $sth->fetchrow();
print header;
print "Content-type: text/html\n\n";
print<<clientes;
<table style="border: 1px solid #000000">
<tr>
<td>
$id
</td>
<td>
$nombre1
</td>
<td>
$direccion
</td>
</tr>
</table>
clientes