However when I try to submist the form I get the following error message at the top -
Invalid Email address Array
If I restore defaults and use them there is no issue.
The form i am using is below - can anyone help me with why the code is causing the above problem?
Code: Select all
{if $controlcount > 0}
{foreach from=$controls item=control}
{assign var=$control->name value=$control}
{/foreach}
{else}<p>Error: ControlCount <= 0</p>{/if}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<p>Use the form below to change the elements of your profile that you want to. You need only edit the elements that you want to change. When you have finished, click submit at the bottom of the page.</p>
<!-- username bit -->
<div id="change_password_block">
<h4>Change your password</h4>
<table summary="passchange" cellpadding="0" cellspacing="0" border="0">
{if isset($username)}<tr>
<td class="addressitem2">{$username->hidden}
{if $username->color != ''}
<font color="{$username->color}">{$username->prompt}{$username->marker}</font>
{else}
{$username->prompt}{$username->marker}
{/if}
</td>
<td class="addressvalue2">{$username->control}</td>
</tr>{/if}
{if isset($password)}<tr>
<td class="addressitem2">{$password->hidden}
{if $password->color != ''}
<font color="{$password->color}">{$password->prompt}{$password->marker}</font>
{else}
{$password->prompt}{$password->marker}
{/if}
</td>
<td class="addressvalue2">{$password->control} <span class="littletext">(Minimum 6 characters)</span></td>
</tr>{/if}
{if isset($repeat_password)}<tr>
<td class="addressitem2">{$repeat_password->hidden}
{if $repeat_password->color != ''}
<font color="{$repeat_password->color}">{$repeat_password->prompt}{$repeat_password->marker}</font>
{else}
{$repeat_password->prompt}{$repeat_password->marker}
{/if}
</td>
<td class="addressvalue2">{$repeat_password->control}</td>
</tr>{/if}
</table>
</div>
<!-- end username bit -->
<!-- main profile area -->
<div id="companydetails2">
<h3>{$ccuser->property('businessname')}</h3>
<div id="offer">
<h3>Change SolarCard Offer</h3>
{if $ccuser->loggedin() && $ccuser->memberof('businessconsumer_auth')}
{$input_logo->hidden}{if $input_logo->color != ''}<font color="#0000f0">{$input_consumerspecialoffer->prompt}{$input_consumerspecialoffer->marker}</font>{else}{$input_consumerspecialoffer->prompt}{$input_consumerspecialoffer->marker}{/if}<br />{$input_consumerspecialoffer->control}
{elseif $ccuser->loggedin() && $ccuser->memberof('businessbusiness_auth')}
{$input_logo->hidden}{if $input_logo->color != ''}<font color="#0000f0">{$input_offerbusiness->prompt}{$input_offerbusiness->marker}</font>{else}{$input_offerbusiness->prompt}{$input_offerbusiness->marker}{/if}<br />{$input_offerbusiness->control}
{elseif $ccuser->loggedin() && $ccuser->memberof('both')}
<h4>Consumer offer</h4>
{$input_logo->hidden}{if $input_logo->color != ''}<font color="#0000f0">{$input_consumerspecialoffer->prompt}{$input_consumerspecialoffer->marker}</font>{else}{$input_consumerspecialoffer->prompt}{$input_consumerspecialoffer->marker}{/if}<br />{$input_consumerspecialoffer->control}
<h4>Business special offer</h4>
{$input_logo->hidden}{if $input_logo->color != ''}<font color="#0000f0">{$input_offerbusiness->prompt}{$input_offerbusiness->marker}</font>{else}{$input_offerbusiness->prompt}{$input_offerbusiness->marker}{/if}<br />{$input_offerbusiness->control}
{/if}
</div>
<div id="profile">
<h4>Change Logo</h4>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="addressitem">Current logo</td>
<td class="addressvalue2"><img src="uploads/feusers/{$ccuser->property('logo')}" alt="{$ccuser->property('businessname')} - logo"></td>
</tr>
<tr>
<td class="addressitem">{$input_logo->hidden}{if $input_logo->color != ''}<font color="#0000f0">{$input_logo->prompt}{$input_logo->marker}</font>{else}{$input_logo->prompt}{$input_logo->marker}{/if}</td>
<td class="addressvalue">{$input_logo->control}</td>
</tr>
<tr>
<td class="addressitem"> </td>
<td class="addressvalue"><span class="littletext">Logos should be in jpg, gif or png format and should be no more than 200px on their longest side.</div></td>
</tr>
</table>
<h4>Change Profile</h4>
<div id="addressdetails">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="addressitem">{$input_firstname->hidden}{if $input_firstname->color != ''}<font color="#0000f0">{$input_firstname->prompt}{$input_firstname->marker}</font>{else}{$input_firstname->prompt}{$input_firstname->marker}{/if}</td>
<td class="addressvalue">{$input_firstname->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_surname->hidden}{if $input_surname->color != ''}<font color="#0000f0">{$input_surname->prompt}{$input_surname->marker}</font>{else}{$input_surname->prompt}{$input_surname->marker}{/if}</td>
<td class="addressvalue">{$input_surname->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_address->hidden}{if $input_address->color != ''}<font color="#0000f0">{$input_address->prompt}{$input_address->marker}</font>{else}{$input_address->prompt}{$input_address->marker}{/if}</td>
<td class="addressvalue">{$input_address->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_area->hidden}{if $input_area->color != ''}<font color="#0000f0">{$input_area->prompt}{$input_area->marker}</font>{else}{$input_area->prompt}{$input_area->marker}{/if}</td>
<td class="addressvalue">{$input_area->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_towncity->hidden}{if $input_towncity->color != ''}<font color="#0000f0">{$input_towncity->prompt}{$input_towncity->marker}</font>{else}{$input_towncity->prompt}{$input_towncity->marker}{/if}</td>
<td class="addressvalue">{$input_towncity->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_county->hidden}{if $input_county->color != ''}<font color="#0000f0">{$input_county->prompt}{$input_county->marker}</font>{else}{$input_county->prompt}{$input_county->marker}{/if}</td>
<td class="addressvalue">NORTHAMPTON<div class="hidden">{$input_county->control}</div></td>
</tr>
<tr>
<td class="addressitem">{$input_postcode->hidden}{if $input_postcode->color != ''}<font color="#0000f0">{$input_postcode->prompt}{$input_postcode->marker}</font>{else}{$input_postcode->prompt}{$input_postcode->marker}{/if}</td>
<td class="addressvalue">{$input_postcode->control}</td>
</tr>
<tr>
<td class="addressitem"> </td>
<td class="addressvalue"> </td>
</tr>
<tr>
<td class="addressitem">{$input_contactname->hidden}{if $input_contactname->color != ''}<font color="#0000f0">Contact nameN$input_contactname->marker}</font>{else}Contact Name{$input_contactname->marker}{/if}</td>
<td class="addressvalue">{$input_contactname->control}</td>
</tr>
<tr>
<td class="addressitem"> </td>
<td class="addressvalue"> </td>
</tr>
<tr>
<td class="addressitem">{$input_phonenumber->hidden}{if $input_phonenumber->color != ''}<font color="#0000f0">{$input_phonenumber->prompt}{$input_phonenumber->marker}</font>{else}{$input_phonenumber->prompt}{$input_phonenumber->marker}{/if}</td>
<td class="addressvalue">{$input_phonenumber->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_faxnumber->hidden}{if $input_faxnumber->color != ''}<font color="#0000f0">{$input_faxnumber->prompt}{$input_faxnumber->marker}</font>{else}{$input_faxnumber->prompt}{$input_faxnumber->marker}{/if}</td>
<td class="addressvalue">{$input_faxnumber->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_website->hidden}{if $input_postcode->color != ''}<font color="#0000f0">{$input_website->prompt}{$input_website->marker}</font>{else}{$input_website->prompt}{$input_website->marker}{/if}</td>
<td class="addressvalue">{$input_website->control}</td>
</tr>
<tr>
<td class="addressitem">{$input_email->hidden}{if $input_email->color != ''}<font color="#0000f0">E-mail for profile{$input_email->marker}</font>{else}E-mail for profile{$input_email->marker}{/if}</td>
<td class="addressvalue">{$input_email->control}</td>
</tr>
</table>
</div>
<div id="businessdetails">{$input_details->hidden}{if $input_details->color != ''}<font color="#0000f0">{$input_details->prompt} {$input_details->marker}</font>{else}{$input_details->prompt} {$input_details->marker}{/if}<br />{$input_details->control}</div>
<div class="see_more"> {/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}</div>
</div>
<div class="underfloat"><img src="look/trans.gif" alt="{$oneuser.properties.businessname} - Northampton StartCard Business" /></div>
</div>