Click to See Complete Forum and Search --> : Converting PHP to sHTML


mikeyzc
07-06-2005, 02:37 PM
Due to time constraints our company had to outsource our website. The contractor wrote our new site in sHTML instead of PHP which is what it was previously written in.

On our old site I had php includes as well as database logging on each page written in PHP. I now have the task of incorporating that logging into the new sHTML files. Below is my old PHP code that was in my logging pages. How can I convert this to work with sHTML?

<?php
include ( "includes/config.inc" );
session_start();
$_SESSION['sessid'] = session_id();
$_SESSION['refer'] = $_GET["refer"];
$_SESSION['page'] = "HOMEPAGE";

$sql = "INSERT INTO ";
$sql .= "INET_REP.refer_track (";
$sql .= " refer_source, ";
$sql .= " refer_session, ";
$sql .= " refer_page ";
$sql .= ") VALUES ( '";
$sql .= $_SESSION['refer'] . "', '";
$sql .= $_SESSION['sessid'] . "', '";
$sql .= $_SESSION['page'] . "')";

dbConnect();
dbExecute ($sql);

#echo $_SESSION['refer'];
#echo $_SESSION['sessid'];
#echo $_SESSION['page'];
?>