I have a textfield:
<?php for($i = 1;$i <= $var;$i++){?>
<input type="text" name="option<?php echo $i;?>">
<?php } ?>
Therefore when the form is submitted the values are option1, option2, option3 etc. (up to $var size)
How can I can I then echo the value of those textfields when $i can range from 1 to anything. Thank you?
P.S. I tried the code below and it didnt work:
<?php
for($i = 1;$i <= $var;$i++){
echo "$option$i";
}
?>