Thanks for the help guys.  Here is the submission code for the phone number.  
The address and email are similar/same.

<!---Phone---> ----------------- This is the button 
---------------------------------

                  <cf_tablemodule 
imagesrc="images/submodule_title_phone_numbers.png"
                  fgcolor="#yang#" 
                  hlcolor="#Client.HeadlineColor#" 
                  bgcolor="#ying#" 
                  class="text_small_color1" 
                  width="367" 
                  bulletlink1="javascript: addPhone()" 
                  bullettitle1="add a phone number" 
                  marginright="0" 
                  marginbottom="7" 
                  cellpadding="7">
                      <div id="phonePlaceholder"></div>
                      <input type="hidden" name="phoneCount">
                      <script language="JavaScript">
                                                                                
<!--
                                                                                
refreshPhones();
                                                                                
-->
                                                                                
</script>
                    </cf_tablemodule>


<!--- Refresh Phones ---> 
-----------------------------------------------------------

function refreshPhones()
{
        var sOutput = '';
        
        
        if(iPhoneCount > 0)
        {
                sOutput += '<table cellspacing="0" cellpadding="0" border="0" 
class="text_small_color1">';
                
                sOutput += '<tr><td style="width: 150px">Name (eg "customer 
service")</td><td>Number</td></tr>';
                
                for(var iCounter = 0; iCounter < iPhoneCount; iCounter++)
                {
                        sOutput += '<tr>';
                        
                        sOutput += '<td><input type="hidden" name="phone' + 
iCounter + 'ID" value="' + oPhone[iCounter].ID + '">';
                        
                        sOutput += '<input type="text" name="phone' + iCounter 
+ 'Name" value="' + oPhone[iCounter].Name + '" class="form_textbox1" 
style="width: 150px"></td>';
                        
                        sOutput += '<td><input type="text" name="phone' + 
iCounter + 'PhoneNumber" value="' + oPhone[iCounter].PhoneNumber + '" 
class="form_textbox1" style="width: 180px"></td>';
                        
                        sOutput += '<td>&nbsp;<a href="javascript: 
deletePhone(' + iCounter + ')"><img 
src="#colorimage("images/delete.png",Client.HeadlineColor,Client.SubModuleColor)#"
 border="0" alt="delete phone number" style="margin-left: 4px"></a></td>';
                        
                        sOutput += '</tr>';
                }
                
                sOutput += '</table>';
        }
        else
                sOutput += '(no phone numbers listed)';
        
        document.form1.phoneCount.value = iPhoneCount;
        obj('phonePlaceholder').innerHTML = sOutput;
}

<!--- Recache Phones ---> 
-----------------------------------------------------------

function recachePhones()
{
        for(var iCounter = 0; iCounter < iPhoneCount; iCounter++)
        {
                oPhone[iCounter].ID = document.form1['phone' + iCounter + 
'ID'].value;
                oPhone[iCounter].Name = document.form1['phone' + iCounter + 
'Name'].value;
                oPhone[iCounter].PhoneNumber = document.form1['phone' + 
iCounter + 'PhoneNumber'].value;
        }
}


<!--- AddPhone ---> 
-----------------------------------------------------------------

function addPhone()
{
        recachePhones();
        
        oPhone[iPhoneCount] = new Object();
        
        oPhone[iPhoneCount].ID = 'new';
        oPhone[iPhoneCount].Name = '';
        oPhone[iPhoneCount].PhoneNumber = '';
        
        iPhoneCount++;
        
                
        
        refreshPhones();
} 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4041
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to