How to echo form values
Posted: Sat Jun 19, 2004 3:33 pm
Hi, I have a form like this in php on list.php
in sites.php I have
The problem is that all I see is the numbers 1 through 10 in sites.php.
My question is how can I echo the variables passed by list.php?
Thanks in advance
Code: Select all
echo " <form name="form1" method="post" action="sites.php">";
$i = 1;
while ($i <= 10){
echo"<input type="text" name="field$i"><br>";
$i++;
}
echo "</form>";Code: Select all
$i = 1;
while ($i <= 10){
echo"$field$i";
$i++;
}My question is how can I echo the variables passed by list.php?
Thanks in advance