Hello,
I want to join 2 variable of php see the script below
[php]$no = $_SESSION[‘no’];
for($i=0;$i<=$no; $i++)
{
$item.$i = $_POST['item'.$i.''];
}[/php]
What do i want to do with the above script? :-
I have stored no in superglobal variable
Then i want to get multiple values via POST
Explanation
When $no = 5
then
$item1 = $_POST['item1'];
$item2 = $_POST['item2'];
$item3 = $_POST['item3'];
$item4 = $_POST['item4'];
$item5 = $_POST['item5'];
^ This is what i wanna do with the php script but it doesn’t allow it.
Some help would be really appreciated.
Thanks