Buka notepad atau Dreamweaver. Kemudian ketikkan script dibawah ini,
<tr bgcolor=’#FFFF80′><td colspan=’2′ align=’center’>Jawab SMS</td>Simpan file dengan nama hitung.html, selamat mencoba…
<form name=’myForm’ method=’post’ action=’simpan.php’>
<tr><td align=’right’>Ke</td><td><input type=’text’ name=’ke’ value=’” . $row["SenderNumber"] .”‘></td>
<tr><td align=’right’>Isi Jawaban SMS</td><td>
<textarea rows=’2′ cols=’100′ name=”message1″ onKeyDown=”textCounter(document.myForm.message1,document.myForm.remLen1,160)” onKeyUp=”textCounter(document.myForm.message1,document.myForm.remLen1,160)”></textarea><br>
<input readonly type=”text” name=”remLen1″ size=”3″ maxlength=”3″ value=”160″>
<tr><td align=’right’>Kirim</td><input type=’submit’ value=’Kirim’><td>
</form>
<SCRIPT LANGUAGE=”JavaScript”>
function textCounter(field,cntfield,akeh) {
if (field.value.length > akeh)
field.value = field.value.substring(0, akeh);
else
cntfield.value = akeh – field.value.length;
}
</script>
0 komentar:
Posting Komentar