Hello.
I am working on making an online video manager as a programming project.. I need to make this loop below, so that it will loop through variables in the POST headers..
From a previous page, the form has input boxes called Owner1, Video1, Description1, Owner2, Video2, Description2, etc...
Basically, I need it to loop through them going Video$i, Description$i, or whatever.
So basically, it gets all the owners, videos, and descriptions sequentially, and then it will all be stored in a database...
$i = 1;
while ($i <= $_POST[numvideos]) {
echo "<p>";
echo("<b>Video $i:</b> <br>");
echo("<b>Owner $i:</b> " . $_POST[owner1] . "<br>");
echo("<b>Url $i:</b> " . $_POST[video1] . "<br>");
echo("<b>Description $i:</b> " . $_POST[description1] . "<br>");
echo "<p>";
$i++;
}