|
Posted by Alvaro G Vicario on 09/26/43 11:16
*** webmaster@themusiccenterinc.com wrote/escribió (19 May 2005 08:17:16 -0700):
> Instead of that being displayed, I would like to display all of the
> fields that were just entered, as well as a hidden field that creates a
> ticket number.
echo '<ul>';
echo '<li>Foo: ' . htmspecialchars($_POST['foo']) . '</li>';
echo '<li>Bar: ' . htmspecialchars($_POST['bar']) . '</li>';
echo '</ul>';
Or
echo '<ul>';
foreach($_POST as $name => $value){
echo '<li>' . htmlspecialchars($name) . ': ' . htmlspecialchars($value) . '</li>';
}
echo '</ul>';
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Navigation:
[Reply to this message]
|