ShopMAster Posted October 27, 2008 Share Posted October 27, 2008 I'm running into a problem and I know it's something simple but I can't figure it out. I have a form which asks for month and year and is stored in cc_exp_mo and cc_exp_year. I need to put both of those values together so 11 10 becomes 1110 and put it in one value: This is my code where I'm trying to do it: "x_card_num" => $_POST['cc_number'], "x_exp_date" => $_POST['cc_exp_mo'] && $_POST['cc_exp_yr'], <--- "x_amount" => $_POST['total_amt'], "x_first_name" => $_POST['cc_name'], Now I don't want to do the form over because there is some script attached and I don't want to fool with it. So how can I set the x_exp_date to show both the post for month and year? I appreciate the help. Shop Quote Link to comment Share on other sites More sharing options...
rhodesa Posted October 27, 2008 Share Posted October 27, 2008 change that line to: "x_exp_date" => $_POST['cc_exp_mo'] . $_POST['cc_exp_yr'], Quote Link to comment Share on other sites More sharing options...
ShopMAster Posted October 27, 2008 Author Share Posted October 27, 2008 Thanks. Worked liked a charm. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.