my $c = CGI->new(); my $node_id = $c->Vars()->{nodeid} my $text = $c->Vars()->{textdata}; my $sth = $dbh->prepare("INSERT INTO t2d SET textfield=? WHERE node_id=?"); $sth->execute($text,$sth);