<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>إرسال النقاط</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
direction: rtl;
}
.container {
margin-top: 50px;
max-width: 400px;
margin: auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
}
input, button {
width: 100%;
padding: 10px;
margin: 10px 0;
}
</style>
</head>
<body>
<div class="container">
<h2>إرسال النقاط لمستخدم آخر</h2>
<form method="POST" action="">
<input type="text" name="recipientUsername" placeholder="اسم المستخدم المستهدف" required>
<input type="number" name="points" placeholder="عدد النقاط" required>
<button type="submit" name="sendPoints">إرسال النقاط</button>
</form>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["sendPoints"])) { // الحصول على البيانات من النموذج
$points = intval($_POST["points"]);
if ($recipientUsername && $points > 0) {
// افتراضياً، نعرض رسالة بدون حفظ حقيقي للنقاط
echo "<p>تم إرسال $points نقاط إلى $recipientUsername.</p>";
// يمكن إضافة كود لحفظ البيانات في قاعدة بيانات هنا إذا أردت.
} else {
echo "<p>يرجى إدخال كافة البيانات بشكل صحيح.</p>";
}
}
?>
</div>
</body>
</html>
PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImFyIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCI+CiAgICA8dGl0bGU+2KXYsdiz2KfZhCDYp9mE2YbZgtin2Lc8L3RpdGxlPgogICAgPHN0eWxlPgogICAgICAgIGJvZHkgewogICAgICAgICAgICBmb250LWZhbWlseTogQXJpYWwsIHNhbnMtc2VyaWY7CiAgICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgICAgICAgZGlyZWN0aW9uOiBydGw7CiAgICAgIC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c2V0KCRfUE9TVFsic2VuZFBvaW50cyJdKSkgewogICAgICAgICAgICAvLyDYp9mE2K3YtdmI2YQg2LnZhNmJINin2YTYqNmK2KfZhtin2Kog2YXZhiDYp9mE2YbZhdmI2LDYrAogICAgICAgICAgICAkcmVjaXBpZW50VXNlcm5hbWUgPSBodG1sc3BlY2lhbGNoYXJzKCRfUE9TVFsicmVjaXBpZW50VXNlcm5hbWUiXSk7CiAgICAgICAgICAgICRwb2ludHMgPSBpbnR2YWwoJF9QT1NUWyJwb2ludHMiXSk7CgogICAgICAgICAgICBpZiAoJHJlY2lwaWVudFVzZXJuYW1lICYmICRwb2ludHMgPiAwKSB7CiAgICAgICAgICAgICAgICAvLyDYp9mB2KrYsdin2LbZitin2YvYjCDZhti52LHYtiDYsdiz2KfZhNipINio2K/ZiNmGINit2YHYuCDYrdmC2YrZgtmKINmE2YTZhtmC2KfYtwogICAgICAgICAgICAgICAgZWNobyAiPHA+2KrZhSDYpdix2LPYp9mEICRwb2ludHMg2YbZgtin2Lcg2KXZhNmJICRyZWNpcGllbnRVc2VybmFtZS48L3A+IjsKICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgLy8g2YrZhdmD2YYg2KXYttin2YHYqSDZg9mI2K8g2YTYrdmB2Lgg2KfZhNio2YrYp9mG2KfYqiDZgdmKINmC2KfYudiv2Kkg2KjZitin2YbYp9iqINmH2YbYpyDYpdiw2Kcg2KPYsdiv2KouCiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBlY2hvICI8cD7Zitix2KzZiSDYpdiv2K7Yp9mEINmD2KfZgdipINin2YTYqNmK2KfZhtin2Kog2KjYtNmD2YQg2LXYrdmK2K0uPC9wPiI7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICA/Pgo8L2Rpdj4KCjwvYm9keT4KPC9odG1sPgo=
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>إرسال النقاط</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
direction: rtl;
}
.container {
margin-top: 50px;
max-width: 400px;
margin: auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
}
input, button {
width: 100%;
padding: 10px;
margin: 10px 0;
}
</style>
</head>
<body>
<div class="container">
<h2>إرسال النقاط لمستخدم آخر</h2>
<form method="POST" action="">
<input type="text" name="recipientUsername" placeholder="اسم المستخدم المستهدف" required>
<input type="number" name="points" placeholder="عدد النقاط" required>
<button type="submit" name="sendPoints">إرسال النقاط</button>
</form>
</div>
</body>
</html>
PHP Notice: Undefined index: REQUEST_METHOD in /home/dKCs5k/prog.php on line 39