Hi all and thanks to the guys who gave me help with the first part of my proble,.
Please be kind again I am new'ish to PHP.
The code below works great, BUT how do I make the results display in a page which I have written. I know I need to parse the results into a page but to be honest I don't know how.
The code at present:
++++++++++++++++++++
<?php
include 'error.inc';
include 'db.inc';
// Start a table, with column headers
echo "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing\"2\">";
echo "<tr><td valign=\"top\">";
echo "<tr><td width=\"925\" valign=\"top\">";
echo "<form method=\"GET\" action=\"$host\"password=\"$password\"wl_opt=\"0\" name=\"API Test\">";
echo "<table width=\"546\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr><td width=\"32\"><img src=\"images/spacer5.gif\" width=\"32\" height=\"10\" border=\"0\" alt=\"\"></td>";
echo "<td width=\"1\"></td>";
echo "<td colspan=\"2\"></td></tr>";
echo "<tr><td width=\"32\"> </td>";
echo "<td width=\"1\"></td>";
echo "<td><img src=\"images/choose_language.gif\" width=\"164\" height=\"20\"></td>";
echo "<td><div align=\"left\">";
echo "<SELECT name=\"wl_srclang\">";
echo "<OPTION value=\"EN\">English</OPTION\">";
echo "<OPTION value=\"ZH_CN\">Chinese (Simplified)</OPTION>";
echo "<OPTION value=\"ZH_TW\">Chinese (Traditional)</OPTION>";
echo "<OPTION value=\"NL\">Dutch</OPTION>";
echo "<OPTION value=\"FR\">French</OPTION>";
echo "<OPTION value=\"DE\">German</OPTION>";
echo "<OPTION value=\"EL\">Greek</OPTION>";
echo "<OPTION value=\"IT\">Italian</OPTION>";
echo "<OPTION value=\"JA\">Japanese</OPTION>";
echo "<OPTION value=\"KO\">Korean</OPTION>";
echo "<OPTION value=\"PT\">Portuguese (Brazil)</OPTION>";
echo "<OPTION value=\"RU\">Russian</OPTION>";
echo "<OPTION value=\"ES\">Spanish</OPTION>";
echo "</SELECT>";
echo "</div></td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td></td>";
echo "<td><img src=\"images/target_language.gif\" width=\"160\" height=\"20\"></td>";
echo "<td><div align=\"left\">";
echo "<SELECT name=\"wl_trglang\">";
echo "<OPTION value=\"EN\">English</OPTION>";
echo "<OPTION value=\"ZH_CN\">Chinese (Simplified)</OPTION>";
echo "<OPTION value=\"ZH_TW\">Chinese (Traditional)</OPTION>";
echo "<OPTION value=\"NL\">Dutch</OPTION>";
echo "<OPTION value=\"FR\">French</OPTION>";
echo "<OPTION value=\"DE\" selected>German</OPTION>";
echo "<OPTION value=\"EL\">Greek</OPTION>";
echo "<OPTION value=\"IT\">Italian</OPTION>";
echo "<OPTION value=\"JA\">Japanese</OPTION>";
echo "<OPTION value=\"KO\">Korean</OPTION>";
echo "<OPTION value=\"PT\">Portuguese (Brazil)</OPTION>";
echo "<OPTION value=\"RU\">Russian</OPTION>";
echo "<OPTION value=\"ES\">Spanish</OPTION>";
echo "</SELECT>";
echo "</div></td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td></td>";
echo "<td><img src=\"images/source_encoding.gif\" width=\"105\" height=\"20\"> </td>";
echo "<td><select name=\"wl_srcenc\">";
echo "<option value=\"ISO-8859-1\" selected>Western ISO-8859-1</option>";
echo "<option value=\"UTF-8\">UTF-8</option>";
echo "<option value=\"gb2312\">Chinese Simplified EUC_CN</option>";
echo "<option value=\"SJIS\">Japanese ShiftJIS SJIS</option>";
echo "<option value=\"MS932\">Japanese ShiftJIS MS932</option>";
echo "<option value=\"KOI8_R\">Russian KOI8_R</option>";
echo "<option value=\"Cp1250\">Cyrillic Cp1250</option>";
echo "<option value=\"Cp1251\">Cyrillic Cp1251</option>";
echo "</select></td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td></td>";
echo "<td><img src=\"images/target_encoding.gif\" width=\"108\" height=\"20\"></td>";
echo "<td><SELECT name=\"wl_trgenc\">";
echo "<OPTION value=\"ISO-8859-1\">Western ISO-8859-1</OPTION>";
echo "<OPTION value=\"UTF-8\" selected>UTF-8</OPTION>";
echo "<OPTION value=\"gb2312\">Chinese Simplified EUC_CN</OPTION>";
echo "<OPTION value=\"SJIS\">Japanese ShiftJIS SJIS</OPTION>";
echo "<OPTION value=\"MS932\">Japanese ShiftJIS MS932</OPTION>";
echo "<OPTION value=\"KOI8_R\">Russian KOI8_R</OPTION>";
echo "<OPTION value=\"Cp1250\">Cyrillic Cp1250</OPTION>";
echo "<OPTION value=\"Cp1251\">Cyrillic Cp1251</OPTION>";
echo "</SELECT></td>";
echo "</tr>";
echo "<tr> ";
echo "<td> </td>";
echo "<td></td>";
echo "<td> </td>";
echo "<td> </td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td></td>";
echo "<td class=\"TDCELLOriginal\"><img src=\"images/original_text.gif\" width=\"83\" height=\"20\"> </td>";
echo "<td> <div align=\"left\">";
?>
<script language="JavaScript">
<!-- Hide from non JavaScript browsers
// Display the icons only for MSIE 4.x and higher
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4){
document.write(' <a href="javascript:textcut()"><img src="images/cut.gif" alt="Cut all" border="0"></a>\n');
document.write(' <a href="javascript:textcopy()"><img src="images/copy.gif" alt="Copy all" border="0"></a>\n');
document.write(' <a href="javascript:textpaste()"><img src="images/paste.gif" alt="Paste all" border="0"></a>\n');
}
// Display the icons for other JavaScript aware browsers
document.write(' <a href="javascript:textdelete()"><img src="images/delete.gif" alt="Delete all" border="0"></a>\n');
document.write(' <a href="javascript:textmail()"><img src="images/mail.gif" alt="E-mail" border="0"></a>\n');
document.write(' <a href="javascript:textsearch()"><img src="images/search.gif" alt="Search the Web" border="0"></a>\n');
document.write('<br>\n');
//-->
</script>
<?
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"32\"> </td>";
echo "<td width=\"1\"> </td>";
echo "<td colspan=\"2\"><textarea name=\"wl_data\" cols=\"80\" rows=\"10\" class=\"input\" id=\"wl_data\" ></textarea></td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td colspan=\"2\" align=right></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"32\"> </td>";
echo "<td width=\"1\"> </td>";
echo "<td width=\"306\" align=right><div align=\"left\"><img src=\"images/translated_text.gif\" width=\"103\" height=\"16\">";
echo "</div></td>";
echo "<td width=\"207\" align=right> <div align=\"left\">";
?>
<script language="JavaScript">
<!-- Hide from non JavaScript browsers
// Display the icons only for MSIE 4.x and higher
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4){
document.write(' <a href="javascript:translationcut()"><img src="images/cut.gif" alt="Cut all" border="0"></a>\n');
document.write(' <a href="javascript:translationcopy()"><img src="images/copy.gif" alt="Copy all" border="0"></a>\n');
document.write(' <a href="javascript:translationpaste()"><img src="images/paste.gif" alt="Paste all" border="0"></a>\n');
}
// Display the icons for other JavaScript aware browsers
document.write(' <a href="javascript:translationdelete()"><img src="images/delete.gif" alt="Delete all" border="0"></a>\n');
document.write(' <a href="javascript:translationmail()"><img src="images/mail.gif" alt="E-mail" border="0"></a>\n');
document.write(' <a href="javascript:translationsearch()"><img src="images/search.gif" alt="Search the Web" border="0"></a>\n');
document.write('<br>\n');
//-->
</script>
<?
echo "</div></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"32\"><img src=\"images/spacer5.gif\" width=\"32\" height=\"10\" border=\"0\" alt=\"\"></td>";
echo "<td width=\"1\"> </td>";
echo "<td colspan=\"2\"><textarea name=\"wl_translation\" cols=\"80\" rows=\"10\" class=\"input\" id=\"wl_translation\" ></textarea></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"32\" height=\"50\"></td>";
echo "<td width=\"1\"></td>";
echo "<td colspan=\"2\"><input type=\"submit\" name=\"Submit\" value=\"Submit\"><input type=\"hidden\" name=\"wl_password\" value=\"wl1life1\"></td>";
echo "</tr>";
echo "</table>";
echo "</form>";
echo "</table>";
?>
++++++++++++++++
Can anyone advice, please
Regards, keep safe and well.
Dereck