Reply to Newbie - Help please with printing $_POST array

Your name:

Reply:


Posted by Dynamo on 05/18/06 12:52

Hi,

How can I display all of the variables held in the $_POST array on my web page?

For example:

<form method="POST" action="displayspostarray.php">
<?php
while($row = mysql_fetch_row($result)) {
echo "<tr>";
echo "<td>" . $row[0] . "</td>";
echo "<td><a href='desc.php?image=$row[0]'><img border='0'
src='/thumbnails/$row[2]'></a></td>";
echo "<td>" . $row[3] . "</td>";
echo "<td>£" . $row[6] . "</td>";
echo "<td>" . $row[7] . "</td>";
echo "<td>£" . $row[8] . "</td>";

?>
<td><input type='checkbox' name='<?php echo $row[0];?>' value='ON'></td>
</tr>
<input type="submit" value="Test">
</form>

I want displayspostarray.php to list all of the variables held in the $POST
array.

Hope that makes sense.

Regards
Dynamo



--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация