Jump to content

[SOLVED] 3 Variables into 1 Array...... ?


stublackett

Recommended Posts

Hi,

 

Hopefully a quick one for someone, Think I'm partially there

 

I'm looking to get the three variables arrival-date,arrival-month and arrival-year into 1 variable for a contact message to be sent to the site owner

 

How do I get the Variables into 1 array to output just the 1 variable titled "Arrival Time" ?

 

My code currently looks like this .....

 

<?php
$arrivaldate = array($_POST['arrival-date'],$_POST['arrival-month'],$_POST['arrival-year']);
?>

 

and at the moment the E-Mail that is sent just has "Array" in it ???

Link to comment
https://forums.phpfreaks.com/topic/130275-solved-3-variables-into-1-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.