Jump to content

[SOLVED] Need some quick help merging $_POST items


ShopMAster

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.