m@l@y@
09-05-2006, 08:16 AM
hi, i'm new to arrays => anyone who can help with this.
<?php
$var = array('one', 'two', 'three');
foreach($var as $key => $value){
if($_GET['click']){
print 'value:'.$value;
}
}
?>
# i need to print each 'value' on every click of a link.
e.g onfirst click => prints 'one'
onsecond click => prints 'two'
onthird click => prints 'three'
Thanx in advance, i'm learning from the best!
<?php
$var = array('one', 'two', 'three');
foreach($var as $key => $value){
if($_GET['click']){
print 'value:'.$value;
}
}
?>
# i need to print each 'value' on every click of a link.
e.g onfirst click => prints 'one'
onsecond click => prints 'two'
onthird click => prints 'three'
Thanx in advance, i'm learning from the best!