Hiện tại em đang làm 1 board mạch giống như 1 web server em đã truyền kí tự đến web server này rồi nhưng khi truyền số kí tự đếm được trong textbox mà mình nhập vào thì lại ko được. Ví dụ nhập vào textbox là abc thì khi ấn submit thì nó sẽ truyền đi số 3 lên web server ( số 3 này chứa trong 1 byte của trường data trong gói tin TCP/IP hoặc là 2 byte khi mình nhập vào textbox lớn hơn 9 kí tự).Rất mong sự giúp đỡ của mọi người.Cảm ơn mọi người rất nhiều.
Còn đây là đoạn code truyền kí tự đến web server nhập từ textbox
<head>
<script language="javascript">
function openurl()
{
if(document.formname.url.value!="")
{
window.open(document.formname.url.value);
return true;
}
else
{
alert("Please enter url!");
return false;
}
}
</script>
</head>

<body>
<form onsubmit="return openurl();" action="#" name="formname" method="post">
<input type="text" name="url" />
<br />
<input type="submit" value="Open url" />
</form>
</body>
</html>