ok ive tryed but im stumped (php)

Associate
Joined
1 Mar 2006
Posts
425
have a php file like this that was written with the help of people on here

PHP:
 <OBJECT ID="ChatFrame" CLASSID="CLSID:8C2B40CD-C2A1-4B48-8FFE-00804230846A'
CODEBASE="chat2.CAB">
<?php
 foreach ($_GET as $param => $value) {
  printf('<PARAM NAME="%s" value="%s">%s',$param,$value,"\n");
  }
 ?>
</object>

and it works kinda..but the chatcontrol loads but the ie window is white still.
i know that the ocx is loading but its not visible .. becuase only the param names are being printed?

is there a way to printf html code?

i tryed something like this

PHP:
$data ("<OBJECT ID="ChatFrame" CLASSID="CLSID:8C2B40CD-C2A1-4B48-8FFE codebase=chat2.cab">

prinf ($data)

didnt work

ima php n00b BTW
 
seeld3.jpg


<?php
print '<OBJECT ID="ChatFrame" CLASSID="CLSID:8C2B40CD-C2A1-4B48-8FFE-00804230846A" CODEBASE="chat2.CAB">';

foreach ($_GET as $param => $value) {
printf('<PARAM NAME="%s" value="%s">%s',$param,$value,"\n");
}
?>



?>

and it creates

<OBJECT ID="ChatFrame" CLASSID="CLSID:8C2B40CD-C2A1-4B48-8FFE-00804230846A" CODEBASE="chat2.CAB"><PARAM NAME="Server" value="irc.amcool.net">
<PARAM NAME="NickName" value="D3nby">
<PARAM NAME="RoomName" value="general">
 
Last edited:
read above mate

it works but check the picture

the prinf overrules the html part

so the control loads but you cant see it
 
^ when you view the source the html is correct..

but i think becuase were using printf its doing that over the top of mi ocx
 
Back
Top Bottom