RathanakBun
-
Posts
2 -
Joined
-
Last visited
Posts posted by RathanakBun
-
-
for ($i=1;$i<10;$i++){
if (isset($_POST['btnsubmit'])){
$fram=$_POST['fram_'.$i];
$year=$_POST['year_'.$i];
$ton=$_POST['ton_'.$i];
$model=$_POST['model_'.$i];
echo $fram."\t";
echo $year."\t";
echo $ton."\t";
echo $model."\t";
echo "<br>";it echo all variable till $i<10
but if i want to echo just 5 variable it will error start from 5 to 9 how can i solve it ??
need help please!!!!
Ulimited get variable from form to $_POST
in Applications
Posted
for ($i=1;$i<10;$i++)
{
if (isset($_POST['btnsubmit']))
{
$fram=$_POST['fram_'.$i];
$year=$_POST['year_'.$i];
$ton=$_POST['ton_'.$i];
$model=$_POST['model_'.$i];
echo $fram."\t";
echo $year."\t";
echo $ton."\t";
echo $model."\t";
echo "<br>";
}
}
This code above will show variable till 9 but i want to show only sometime 2 or sometime 3 or sometime 5 how can i close other variable
what code i can use or what function ?