As I can't edit I did try that with an alert instead of your func to load pages;
It does work and a Live example is http://www.jamesrozee.com/robbie.php?id=2PHP Code:$numbers = array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 );
echo( '<script type="text/javascript">
function someFunc() {
' );
for( $i = 0; $i < sizeof($numbers); $i++ )
{
// you can use a while i guess.
echo( 'alert( "' . $numbers[ $i ] . '" );' );
}
echo( '}
</script>
' );
?>
<input type="submit" value="Press" onClick="javascript:someFunc();">





Reply With Quote
. Any more help? Thanks for help btw
