check input from textbox
Posted: Thu Jan 15, 2009 12:16 pm
hi all,
i have this piece of code to check the textbox input:
- with this i want to check:
if user types: FEBRUARY 28 in the box the system will select febevent
if user tyeps: ttevents in the box the system will select ttevents
somehow it doesn't work, it selects febevent all the time.
thanks!
i have this piece of code to check the textbox input:
Code: Select all
$selectedProdCode="LMQ";
if ($memberDataArray['eventDate']="FEBRUARY 28") //changed from ttevents
{
$selectedProdCode="febevent";
}
elseif ($memberDataArray['eventDate']='ttevents')
{
$selectedProdCode="ttevents";
}if user types: FEBRUARY 28 in the box the system will select febevent
if user tyeps: ttevents in the box the system will select ttevents
somehow it doesn't work, it selects febevent all the time.
thanks!