עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

שאלה קצרה ב-Flash (פניה לקובץ PHP)

Featured Replies

פורסם

שלום לכולם,

אני מנסה לכתוב קטע קוד קצר ב-Flash אשר אמור לפנות לקובץ PHP על גביי השרת ודרכו לבצע עדכון של מסד נתונים (MySQL).

השאלה שלי עוסקת רק באופן כתיבת הקוד ב-Flash ולכן אני לא מצרף את הקוד של קובץ ה-PHP.

לפי מה שלמדתי, הדבר אמור להתבצע בצורה כזאת :


var LV:LoadVars = new LoadVars();

LV.send("[url]http://localhost/file.php?name=abcd"[/url]);

הבעיה היא, ששורות הקוד האלה לא מעדכנות את מסד הנתונים, בעוד שהקוד הבא כן מבצע את העדכון כנדרש :


var LV:LoadVars = new LoadVars();

LV.name = "abcd";
LV.send("[url]http://localhost/file.php"[/url], "_blank", "GET");

אני מבצע שימוש ב-Flash 8 Professional, ושם כפי שציינתי עובדת רק הדרך השניה, בעוד שב-Flash2004MX הדרך הראשונה עובדת בוודאות (את הדרך השניה לא ניסיתי ב-Flash2004MX).

השאלה שלי האם באמת אופן ביצוע הפעולה השתנה בין הגרסאות, או שניתן עדיין להשתמש בשיטה הראשונה גם ב-Flash 8 Professional בדרך שאני לא מודע אליה ?

תודה רבה!

פורסם

הכי טוב שתנסה.

בכל מקרה אתה יכל לבצע גם כך:

var1 = "aa";
var2 = "bb";
var3 = "cc";
var4 = "dd";
loadVariablesNum("[url]http://www.yourdomain.com/test.php"[/url], 0, "POST")

בצד ה php אתה כמובן קורא למשתנים האלו ב post

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.