אני צריך עזרה, יש טופס כאילו שבן אדם ממלא שהוא אמור לבחור מוצר שהוא רוצה, המטרה היא שאחרי שהוא ממלא הכל ובוחר מה הוא רוצה לקנות זה ישלח אותו לדף אחר שבו כתוב איזה מוצרים הוא בחר וכמה יעלה לו
וזה צריך להתבצע בPHP
יש את ההתחלה הזאת שאמרו לנו לשים אבל חוץ מזה אין לי מושג איך לעשות... המורה לא הסביר כל כך..
אפשר עזרה מה אני צריך להוסיף מתחת לטופס בשביל שזה יתבצע?
(PHP ב)
<form name="myForm" action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST" onsubmit=" return checkForm()" >
<font class="Label">שם פרטי:</font><input type="text" name="firstName"></br></br>
<font class="Label">שם משפחה:</font><input type="text" name="lastName"></br></br>
<font class="Label">טלפון:</font> <input type="text" name="phone" maxlength="7" size="7">
<select name="Prior">
<option>נא לבחור קידומת</option>
<option>050</option>
<option>052</option>
<option>054</option>
<option>057</option>
</select>
</br></br>
<font class="Label">כתובת:</font><input type="text" name="Adress"></br></br>
<font class="Label">מוצרים זמינים:</font></br>
<table border="1">
<tr>
<td></td>
<td><font class="Product">קולה</font></td>
<td><font class="Product">פאנטה</font></td>
<td><font class="Product">ספרייט</font></td>
<td><font class="Product">מים</font></td>
</tr>
<tr>
<td><font class="Product">מוצר:</font></td>
<td><img src="cola.jpg" width="100" height="200"></img></td>
<td><img src="fanta.jpg" width="100" height="200"></img></td>
<td><img src="Sprite.jpg" width="100" height="200"></img></td>
<td><img src="eden.jpg" width="100" height="200"></img></td>
</tr>
<tr>
<td><font class="Product">מחיר:</font></td>
<td><font class="Product">10 ש"ח</font></td>
<td><font class="Product">9 ש"ח</font></td>
<td><font class="Product">9 ש"ח</font></td>
<td><font class="Product">7 ש"ח</font></td>
</tr>
</table></br>
<font class="Label">בחר משקה</font>
<p>קולה<input type="checkbox" name="extra" value="קולה" />
פאנטה<input type="checkbox" name="extra" value="פאנטה" />
ספרייט<input type="checkbox" name="extra" value="ספרייט" />
מים<input type="checkbox" name="extra" value="מים" /></p>
</br></br>
<p><input type="submit" value="שלח טופס" /></p>
</form>







ציטוט ההודעה