Re: [Nolug] php help: storing from variable # of form entries

From: Christopher M. Jones <cjones12_at_tulane.edu>
Date: Thu, 28 Aug 2003 22:13:02 -0500
Message-ID: <20030829031302.GE838@copernicus.tulane.edu>

OK, got it. Thanks, everyone, for all your help. I love having you guys
around. Here's what I needed:
<html>
<body>

<form action="<?php echo $PHP_SELF?>" method="post">

<?php

if($enter){
        for($i=0; $i < 3; $i++) {
                $a = "data_$i";
                echo $$a;
                echo "</br>";
        }
}

$row[0] = data0;
$row[1] = data1;
$row[2] = data2;
for ($i=0; $i < 3; $i++){
        echo $row[$i];
        echo "<input type=text name=data_$i size=3></br>";
}

?>
<input type=submit name=enter value=Submit>
</form>
___________________
Nolug mailing list
nolug@nolug.org
Received on 08/28/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST