Jump to content

Halim

Members
  • Posts

    4
  • Joined

  • Last visited

Halim's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi Ingolme, Thanks it works! But i have another question: If i need to retrieve more variables (100 variables) how do I do that ? document.getElementById("txtHint").innerHTML=xmlhttp.responseText; document.getElementById("txtHint2").innerHTML=xmlhttp.responseText; document.getElementById("txtHint3").innerHTML=xmlhttp.responseText; ... and so on doesnt seem to work ? Please advise. Thanks Regards, Halim
  2. Halim

    Using Ms Words in PHP

    Hi Guys, Thanks, you are right! Linux server doesnt support Ms Words so I have resolved to use pdf instead.
  3. Hi, I need simple help. I just want to retrieve the input value $q that is passed from javascript to php. But XMLHTTP.responseText return the both input value + whole html ? Please help. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Singapore Godown</title> </head> <body > <script> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } var xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("POST","test.php?q="+str,true); xmlhttp.send(); } </script> <table> <input type="text" onkeyup="showHint(this.value)"> <div id="txtHint"></div> </table> <?php // get the q parameter from URL $q=$_REQUEST["q"]; echo "Input: ".$q; ?> </body> </html> Regards, Halim
  4. Hi, I need help on installing and configuring COM("word.application") in order to use Ms Word file in PHP. I'm using PHP version 5.3 I am trying to open and edit Ms Word file in PHP. I have added below configuration in my php.ini file in my local xampp folder.[COM_DOT_NET]extension=php_com_dotnet.dll It works well in localhost environment. However, when I uploaded my php code files online in cpanel. It couldnt seem to open the word file .doc ? I have tried to upload the php.ini also in the public_html but still not working ? Have I missed anything ?Thanks! Halim
×
×
  • Create New...