I have 20 titles which is inserted in a form and submitted.
The names of the input fields are Title1, Title2, Title3 and so on.
When I get them after submitting I do like this:
$title1=$_POST[Title1'];
$title2=$_POST[Title2'];
$title3=$_POST[Title3'];
But now I'm trying to do it with a FOR LOOP so I don't have to make 20 lines.
But it doesn't work. I can't get the $num behind the POST['Title
$num=0; for ($i=1; $i<=20; $i++){
$num=$num+1;
${'title' . $num}=$_POST['Title???'];
}
So how do I get the $num behind Title ?