这很简单,但我无法进入逻辑。
有一个简单的在线表格。希望提交后能够调整变量。
如果有人可以阐明这一点,将非常感激!
$chocolatebar = $HTTP_POST_VARS['chocolatebar'];
if $chocolatebar = "a" then we want to change the value to "snickers";
if $chocolatebar = "b" then we want to change the value to "mars";
if $chocolatebar = "c" then we want to change the value to "cherry ripe";