Integers are not Variables..???
| From: | Dhaval Desai | Date: | Wed, 17 Jan 2001 05:10:27 +0000 |
| Subject: | Integers are not Variables..??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34984@lists.php.net to get a copy of this message | ||
Hi Guys!!
Below is my code:(which works but See the ourput on this page....please...
http://dhaval.isamillionaire.com/loop.php
<form action="<?php echo"$PHP_SELF"; ?>" method="post">
<input type="hidden" name="flag" value="0">
<select name="recepients" onchange="javascript:submit();">
<option value="">--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select></form></td>
</tr>
</table>
<form action="sendmail.php">
<?php
if(isset($flag))
{
for($i=1; $i<=$recepients; $i++)
{
echo "<input type=\"text\" name=\"$i\">"
."<br>";
}
}
else
{
echo "<input type=\"text\" name=\"1\">";
}
echo " <input type=\"submit\" value=\"Does it
work\"></form>";
?>
I want to accomplish the above..any idea how is it possible..?
Thanx everybody..
Dhaval Desai
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.