cloudd1
02-20-2012, 12:38 AM
Hello, I am using the following POST code <html>
<body>
<form action="./test.php" Method="POST">
<p>
Hash:</br>
<textarea name="data[]" cols=40 rows=4></textarea>
</p>
<p>
<input type="submit" name="submit" value="submit" />
</body>
</html>
And I am using the following code in text.php <?php
$array = $_POST['data'];
print_r($array);
?>
It works ok but I want to read every single row into an array as a new element.
Iam not sure whether it's a html related problem or php problem so I posted this here.
Looking for any kind of help :)
Thanks!
<body>
<form action="./test.php" Method="POST">
<p>
Hash:</br>
<textarea name="data[]" cols=40 rows=4></textarea>
</p>
<p>
<input type="submit" name="submit" value="submit" />
</body>
</html>
And I am using the following code in text.php <?php
$array = $_POST['data'];
print_r($array);
?>
It works ok but I want to read every single row into an array as a new element.
Iam not sure whether it's a html related problem or php problem so I posted this here.
Looking for any kind of help :)
Thanks!