Hello I have a array I made in My CMS lang file that looks like this
$lang['easy_email_signups'] = array(
'' => 'F',
'@hotmail.com' => 'Yahoo',
'@yahoo.com' => 'TracFone',
'@aol.com' => 'AOL',
'@live.com' => 'Windowslive',
);
ok in the tpl file I have
<input class="textinput" maxlength="255" name="txtemail" size="40" value="{$smarty.session.email}" />
now I want to add this so the user inputs thier msn or yahoo user name and the rest is added on selection.
<select class="select" style="width: 150px;" name="txtemail">
{html_options options=$lang.easy_email_signups selected='F'}
</select>
I guess My question is how to go about this?? do I asign a string value to the input?
I am not sure how to form it so if the user types in say.. (Myusername) it is sudmitted as Myusername@hotmail.com if the hotmail was the selection..
can some please help point me into the right direction here?
Thank you before hand..
MA WarGod
I believe if someone can think it, it can be programmed
$lang['easy_email_signups'] = array(
'' => 'F',
'@hotmail.com' => 'Yahoo',
'@yahoo.com' => 'TracFone',
'@aol.com' => 'AOL',
'@live.com' => 'Windowslive',
);
ok in the tpl file I have
<input class="textinput" maxlength="255" name="txtemail" size="40" value="{$smarty.session.email}" />
now I want to add this so the user inputs thier msn or yahoo user name and the rest is added on selection.
<select class="select" style="width: 150px;" name="txtemail">
{html_options options=$lang.easy_email_signups selected='F'}
</select>
I guess My question is how to go about this?? do I asign a string value to the input?
I am not sure how to form it so if the user types in say.. (Myusername) it is sudmitted as Myusername@hotmail.com if the hotmail was the selection..
can some please help point me into the right direction here?
Thank you before hand..
MA WarGod
I believe if someone can think it, it can be programmed