I'm working on a script that will grab hidden variables from an HTML page. The HTML page has stuff like;
<hidden name="title[0]" value="Testing1">
<hidden name="title[1]" value="Testing2">
<hidden name="title[2]" value="Testing3">
<hidden name="title[3]" value="Testing4">
I have an example script;
<?php
global $title;
foreach ($title as $_title) { echo "$_title<BR>"; }
?>
However, this gives me an error;
Warning: Invalid argument supplied for foreach() in /home/askweddi/public_html/a/test.php on line 5
Anyone got any ideas as to why I'm getting this problem?
Sorry to keep asking so many questions...but I'm pretty new to this array/foreach stuff in PHP, as I only started playig with it all recently
Cheers
Andy
<hidden name="title[0]" value="Testing1">
<hidden name="title[1]" value="Testing2">
<hidden name="title[2]" value="Testing3">
<hidden name="title[3]" value="Testing4">
I have an example script;
<?php
global $title;
foreach ($title as $_title) { echo "$_title<BR>"; }
?>
However, this gives me an error;
Warning: Invalid argument supplied for foreach() in /home/askweddi/public_html/a/test.php on line 5
Anyone got any ideas as to why I'm getting this problem?
Sorry to keep asking so many questions...but I'm pretty new to this array/foreach stuff in PHP, as I only started playig with it all recently

Cheers
Andy