JovanLo
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by JovanLo
-
-
if the name of the above form is "test" then, you can access the value of the third checkbox element by using the following line (javascript)
var id_cat="cat_id[]";
var third_val =document.test[id_cat]["2"].value;
-
try this : echo $item will print the selected values.
<?
$cat_id_array=$_POST["cat_id"];
foreach($cat_id_array as $key=>$item){
echo $item;
}
?>
<html>
<form method="post" action"">
<label><input type='checkbox' name='cat_id[]' value='1'/>Food</label>
<label><input type='checkbox' name='cat_id[]' value='2'/>Gas</label>
<label><input type='checkbox' name='cat_id[]' value='3'/>Religion</label>
<label><input type='checkbox' name='cat_id[]' value='4'/>Chips</label>
<label><input type='checkbox' name='cat_id[]' value='5'/>Drinks</label>
<input type="submit" value="submit">
</form>
</html>
-
i hope this is what you are looking for..
foreach($arActive as $key=>$value){
$value_array=explode("_",$value);
$key_next=$value_array[1];
$final[]=$arMyServers[$key_next];
}
Simple PHP Code--Auto download image
in PHP Coding Help
Posted
you can use wget tool to download your images. A cron job to wget the images at specified intervals will work.
http://pages.interlog.com/~tcharron/wgetwin.html
http://gnuwin32.sourceforge.net/packages/wget.htm