Instead of checking the session like I was above, would doing something like this work better?
PHP Code:switch($addressType) {
case 'billto':
//original form and database inserts
break;
case 'shipto':
//modified form and database inserts
break;
}
Instead of checking the session like I was above, would doing something like this work better?
PHP Code:switch($addressType) {
case 'billto':
//original form and database inserts
break;
case 'shipto':
//modified form and database inserts
break;
}