View Single Post
ישן 01-06-06, 18:52   # 1
-VladK-
הוסטסניון
 
-VladK-'s Avatar
 
מיני פרופיל
תאריך הצטרפות: Apr 2006
גיל: 34
הודעות: 2,182

-VladK- לא מחובר  

לעשות את הפעולה של השליחה בחלון חדש...כיצד?

שלום.
נגיד יש לי תופס...עכשיו אני רוצה לבצע את הפעולה של השליחה בחלון חדש...כלומר כשאני לוחץ על שלח אז נפתח חלון חדש ומשם נשלחים הנתונים....הנה התופס:
PHP קוד:
<form action="poll.php?method=vote\" method=\"post\">
<div dir=\"rtl\">"
;
$results "<a href=\"poll.php?method=results&id=$id\">";

include 
'db.php';
$sql "SELECT * FROM poll_answers WHERE poll_id = '$id' ORDER BY id ASC";
$res mysql_query($sql) or die(mysql_error());

// Retrieve the Results
while ($newArray mysql_fetch_array($res)) {
   
// Convert the Result set into Variables
   
$id $newArray['id'];
   
$poll_id $newArray['poll_id'];
   
$answer $newArray['answer'];

echo 
"<input type=\"radio\" name=\"answer_id\" value=\"$id\"> $answer<br />";

}
echo 
"</div>
<div dir=\"ltr\" style=\"height:17px;\">
$results<img src=\"2.gif\" width=\"59\" height=\"17\" border=\"0\" /></a> <input type=\"image\" name=\"image\" src=\"1.gif\">
</div>
</div><input type=\"hidden\" name=\"poll_id\" value=\"$id\">\n"
;
echo 
"</form>"
מה עלי לעשות על מנת שזה יעבוד?