<form action="<?=$PHP_SELF;?>" method="post">
<P>
<LABEL for="list"> </LABEL>
<textarea name="list" rows="15" cols="50" READONLY>
<?php
if ($textbox != "") {
print $textbox."\n".$list;
} else {
print $list;
}
?>
</textarea>
<LABEL for="listnavn"> </LABEL>
<textarea name="listnavn" rows="15" cols="15" READONLY></textarea><br>
<LABEL for="textbox"></LABEL>
</P>
<input type="text" name="textbox" size=62>
<input type="submit" value="text">
</FORM>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
$tekst=urldecode($tekst);
echo($tekst);
$fp = fsockopen ("192.168.1.3", 1024, $errno, $errstr, 10);
socket_set_blocking ($this->connection, false);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "USER:$login1\r\n");
//fputs ($fp, $textbox\r\n");
while (!feof($fp))
{
$tekst=$tekst.fgets($fp,200);
echo($tekst);
}
fclose($fp);
}
?>
</body>
here is me code, and a have a problem with me while. when i connect too me server, then the new html page will not open. it is staying in that while.
this is me first program in PhP, so plz dont talk too most code talk :-) thx
thx all for your help