السلام عليكــم ورحمـة الله وبركاتــه
لدي مشكلة في هذا الكود
- }
- ?>
- <form method="post" action="b.php">
- <table border='0' cellspacing='0' style="border-collapse: collapse;" width='100' >
- <tr bgcolor='#ffffff'>
- <td width='25%'><input type=checkbox name=box[] value='John'></td>
- <td width='25%'> John</td>
- <td width='25%'><input type=checkbox name=box[] value='Mike'></td>
- <td width='25%'> Mike</td>
- <td width='25%'><input type=checkbox name=box[] value='Rone'></td>
- <td width='25%'> Rone</td>
- </tr>
- <tr bgcolor='#f1f1f1'>
- <td width='25%'><input type=checkbox name=box[] value='Mathew'></td>
- <td width='25%'> Mathew</td>
- <td width='25%'><input type=checkbox name=box[] value='Reid'></td>
- <td width='25%'> Reid</td>
- <td width='25%'><input type=checkbox name=box[] value='Simon'></td>
- <td width='25%'> Simon</td>
- </tr>
- <tr><td colspan =6 align=center><input type=submit value=Select></form></td></tr>
- </table>
فهو يعمل على السيرفر المحلي المنصب على جهازي
ولكن عند رفعه على سيرفر موقعي...تبقى المصفوفة فارغة
أرجو المساعدة :blush:
وهذا كود مشابه
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http//www.w3.org/TR/xhtm
l1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <?
- if($_POST['button']=="Submit"){
- foreach($fav as &$value)
- }
- ?>
- <form id="form1" name="form1" method="post" action="a.php">
- <p>
- <input type="checkbox" name="fav[]" id="fav[]" value='mohannad' />
- mohannad</p>
- <p>
- <input type="checkbox" name="fav[]" id="fav[]" value='ali' />
- ali </p>
- <p>
- <input type="checkbox" name="fav[]" id="fav[]" value='walid' />
- walid</p>
- <p>
- <input type="checkbox" name="fav[0]" id="fav[]" value='ahmad'/>
- ahmad</p>
- <p>
- <input type="checkbox" name="fav[1]" id="fav[]" value='rafat' />
- rafat</p>
- <p>
- <input type="checkbox" name="fav[2]" id="fav[]" value='khalid' />
- khaled</p>
- <p>
- <input type="checkbox" name="fav[3]" id="fav[]" value='rami'/>
- rami</p>
- <p>
- <input type="checkbox" name="fav[4]" id="fav[]" value='sami' />
- sami</p>
- <p>
- <input type="checkbox" name="fav[5]" id="fav[]" value='wade' />
- wade</p>
- <p>
- <input type="checkbox" name="fav[6]" id="fav[]" value='omar'/>
- omar</p>
- <p>
- <input type="checkbox" name="fav[7]" id="fav[]" value='qaes' />
- qaes</p>
- <p>
- <input type="checkbox" name="fav[8]" id="fav[]" value='gon' />
- gon</p>
- <p>
- <label>
- <input type="submit" name="button" id="button" value="Submit" />
- </label>
- </p>
- </form>
- </body>
- </html>