Welcome Guest, Not a member yet? Register   Sign In
Array from view to database (HELP)
#1

[eluser]sapid_guy[/eluser]
Ok here is the thing

i have a form generated from a DB
the form contain a list of names with chose of SELECT and Text Area,

More

Form Code
Code:
<form action="" method="post" enctype="multipart/form-data">

<input type="checkbox" name="name[]" value="1.jpg"  />
<input type="text" name="queue[]" value="" maxlength="2" size="10" style="width:50%"  />

<input type="checkbox" name="name[]" value="Blue_hills.jpg"  />
<input type="text" name="queue[]" value="" maxlength="2" size="10" style="width:50%"  />

<input type="checkbox" name="name[]" value="Blue_hills1.jpg"  />
<input type="text" name="queue[]" value="" maxlength="2" size="10" style="width:50%"  />

Name the List:
<input type="text" name="list_name" value="" size="30" />
<input type="submit" value="Creat List" />
</form>

Array is my weak point in Programming.

When i use print_r

test2
Array ( [img_name] => Array ( [0] => 1.jpg [1] => Blue_hills.jpg ) )
Array ( [img_que] => Array ( [0] => 3 [1] => 2 [2] => [3] => ) )

why when i check the data the images selected is posted but the text area are posted even the empty once????


Messages In This Thread
Array from view to database (HELP) - by El Forum - 02-11-2009, 03:17 AM
Array from view to database (HELP) - by El Forum - 02-11-2009, 03:35 AM
Array from view to database (HELP) - by El Forum - 02-11-2009, 03:43 AM
Array from view to database (HELP) - by El Forum - 02-11-2009, 03:51 AM
Array from view to database (HELP) - by El Forum - 02-11-2009, 04:01 AM
Array from view to database (HELP) - by El Forum - 02-11-2009, 04:57 AM
Array from view to database (HELP) - by El Forum - 02-12-2009, 01:58 AM
Array from view to database (HELP) - by El Forum - 02-12-2009, 03:35 AM
Array from view to database (HELP) - by El Forum - 02-12-2009, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB