עכשיו אין שגיאה אבל ההודעה לא נשלחת אנ יסביר,
יש לי קובץ send.php שבמקור נראה ככה:
PHP קוד:
<?php
include 'php2icq.php'
;$icq = new php2icq('366986674', 'testpw', STATUS_ONLINE);
if (!$icq->login())
{
echo $icq->get_error();
}
else
{
$icq->send_message('366986674', 'hi my first php2icq message :)');
}
?>
כאשר 366986674 זה המספר אליו נשלחת ההודעה.
ו 'hi my first php2icq message

זה ההודעה שנשלחת.
רציתי לעשות את זה עם טופס שאנשים ירשמו וזה יכניס לsend.php אז יצרתי:
index.HTML שבו:
HTML קוד:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>שליחת הודעה.</title>
</head>
<body>
אנא מלא את כל התיבות
<form action="send.php" method="post">
<input type="text" size="25" name="mes" />מספר:
<br />
<input type="text" size="25" name="uin" />הודעה:
</form>
<p>
<input type="submit" value="שלח" /></p>
</body>
</html>
ובמקביל ערכתי את send.php :
PHP קוד:
<?php
include 'php2icq.php';
$icq = new php4icq('458906430', 'php2icq', STATUS_ONLINE);
if (!$icq->login())
{
echo $icq->get_error();
}
else
{
$icq->send_message($_POST['uin'], $_POST['mis']);
}
?>
הבעיה היא בשורה 10 לדעתי לא מוצא איך לפתור אותה...
תודה רבה לעוזרים!