PDA

View Full Version : EASY - php to perl??



mangotext
March 11th, 2005, 12:29 AM
Hi all
I'm only a beginner in perl. Easy if you know how I suppose! Need to change this insert php script to perl.....

include ("detail.php");

$db = mysql_connect("$host", $user, $password );
mysql_select_db("$database",$db);

$q = "INSERT INTO tablename (";
$q .= "DBfield1, DBfield2, DBfield3";
$q .= ") VALUES (";
$q .= "'$formfield1', '$formfield2', '$Formfield3')";

mysql_query($q,$db);

?>
<script language="javascript">

document.location.replace("thankYou.htm");

</script>

can anyone help?