Hello,
Looking to edit my ARRAY variables through a form. Of course each ARRAY variable is tied to the other variables as well. I'd like to be able to edit each chunk. (For instance...if I want to edit variable 3 a form would be displayed to edit image_3.jpg, Headline 3, Caption 3, and Link 3)
Can anyone gives me some ideas on how to do so? I dont't ever know where to start.
Here's my array:
<?php
$image = Array(
"image_1.jpg",
"image_2.jpg",
"image_3.jpg",
"image_4.jpg",
"image_5.jpg"
);
$headline = Array(
"Headline 1",
"Headline 2",
"Headline 3",
"Headline 4",
"Headline 5"
);
$caption = Array(
"Caption 1",
"Caption 2",
"Caption 3",
"Caption 4",
"Caption 5"
);
$link = Array(
"Link 1",
"Link 2",
"Link 3",
"Link 4",
"Link 5"
);
$many = count($headline);
$x = rand(0,$many-1);
echo "<table width='100%' border=0 cellspacing=0 cellpadding=3><tr><td width='0%'><a href='".$link[$x]."' class='images'><img src='/temp/main/".$image[$x]."' width='130' height='60' border='1' alt='".$headline[$x]."'></a></td><td width='100%'><p><a href='".$link[$x]."' class='main5'><u>".$headline[$x]."</u></a><br>".$caption[$x]."</td></tr></table>";
?>