I'm trying to use Smarty to automatically insert data into a textarea
.
There are two lines that will be inserted. Here's an example of what would be inserted:
John Doe
Level 1, Support Tech
Obviously each name would have a position associated with it.
I'm imagining it should be something like this:
$array-names = array("John Joe", "Jane Doe", "Random Name");
$array-positions = array("Level 1, Support Tech", "Level 2, Sales Staff", "Level 2, Billing Team");
And then I would just need to randomly pick one to automatically insert - but they need to match. For example, John Doe
should always have Level 1, Support Tech
listed below.
Is doing something like this possible in Smarty or am I on the totally wrong track...?