The first line below works but the second one doesn't. If $quantity were to equal 0 then I want both of these to do exactly the same thing.
echo "<Input type=text size=2 name=quantity[$buy] value=$quantity>";
echo "<a href=$PHP_SELF?quantity[$buy]=0>Remove Item</a><br>";
Are you using POST or GET on the receiving end of the script? Also, try urlencoding the href like this:
echo "<a href=\"" . urlencode( "$PHP_SELF?quantity[$buy]=0" ) . "\">Remove Item</a><br>";
And add this line prior to the echo:
$PHP_SELF = $_SERVER['PHP_SELF'];
In case regiester_globals is off (I hope it is).
--Dave
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php