Jump to content

RathanakBun

New Members
  • Posts

    2
  • Joined

  • Last visited

RathanakBun's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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 ?
  2. 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!!!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.