Hi...
I want to display associative using variable as its key value.
I used the following script.
But it is not functioning.
<body>
<?php
if(isset($_POST['st']))
{
while ($item = current($_POST))
{
echo $_POST[$key];
next($_POST);
}
}
?>
<form id="form1" name="form1" method="post" action="mysql_inj.php">
<p>
<label for="textfield"></label>
<input type="text" name="t1" id="textfield" />
</p>
<p>
<input type="text" name="t2" id="textfield2" />
</p>
<input type="submit" name="st" id="textfield3" />
</form>
</body>
</html>