Ok, I have tried to modify the codes but it still cannot work...
anyway;
------------------------------------------------------------------------------------------
1st file; ParseXML.php (This file displayed errors ;
Parse error: parse error, unexpected T_ELSE in
C:\Program
Files\xampp\htdocs\plaincart\parseXML.php on line
22)
<?php
//---------------------------
// Parse XML
//---------------------------
if (isset($_COOKIE['cookieLanguage'])) {
if (file_exists("lang.xml")) {
$xml =
simplexml_load_file("lang.xml");
}
else {
die("Language file not
found");
}
if ($_COOKIE['cookieLanguage'] == "language")
{
$lang =
$xml->english;
}
else {
$lang =
eval("\$xml->" . strtolower($_COOKIE['cookieLanguage']) .
";");
}
else if ($_COOKIE['cookieLanguage'] == "malay")
{
$lang = $xml->malay;
}
else if ($_COOKIE['cookieLanguage'] ==
"swedish") {
$lang =
$xml->swedish;
}
}
else {
if (file_exists("lang.xml")) {
$xml =
simplexml_load_file("lang.xml");
$lang =
$xml->english;
}
else {
die("Language file not
found");
}
}
?>
------------------------------------------------
2nd file: linkings;
function showloginForm(){
echo "<table >
<form name='loginform' id='loginform'
action='login.php' method='post'>
<tr >
<td
align='left'>";
echo
$lang->username;
echo ":</td>
<td ><input
type='text' name='log' id='log' value='' size='15'tabindex='1'
/></td>
</tr>
<tr >
<td>";
$lang->password; echo "</td>
<td><input
type='password' name='pwd' id='pwd' value='' size='15' tabindex='2'
/></td>
</tr>
<tr>
<td align='center'
colspan='2'><a
href='register.php'>Register</a>|<a href''>Forgot
Login</a> | <input type='submit' name='submit' id='submit'
value='Login' tabindex='4' /></font></td>
</tr>
</table>";
}
---------------------------------------------
3rd file;
<?xml version="1.0" encoding="iso-8859-1"?>
<languages>
<english>
<type>English</type>
<title>Login
Form</title>
<username>Username</username>
<password>Password</password>
......................
so that will be it, any help??