Re: New PHP user requests your assistance.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wes Smith schrieb:
I am receiving NOTICES when I run a script like this one:

<?php
echo "<p>Welcome <b>$_POST[user]</b>!</p>";
echo "<p>Your product choices are:<br>";
if (!empty($_POST[products])) {
    echo "<ul>";
    foreach ($_POST[products] as $Value) {
        echo"<li>$value";
    }
    echo "</ul>";
}
?>


As already told you, this is not PHP list.
Try it with
$_POST["user"]
$_POST["products"]

And read the fine PHP manual more carefully.

   Hendrik


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux