We help IT Professionals succeed at work.

HTML Open a clearbox form from a smaller form

gwarcher
gwarcher asked
on
I have a small email sign up form in basic html that I would like to use to call a larger form.  I can't figure out how to pass variables and I can't figure out how to add a "rel" element that I normally use in a href to call the clearbox code.

Any help would be appreciated.

Thanks
Comment
Watch Question

Shinesh PremrajanEngineering Manager

Commented:
Is it possible to paste your code here

Author

Commented:
Sure, the first portion will be from the index.html file (child form I imagine) and the second will be email_signup.html, which is the form that I would like to get into clearbox.

Right now the child form is pointing to a simple php file that emails me those who sign up.  I would like to remove this as I want to convert it to a double-opt in process through my vendor (mailchimp)


Index.html

   <form action="emaillist.php" method="post" id="form1" style="margin-bottom: 0;"> 

                                                   <!--<form id="form1" method="GET" onsubmit="CB_Open('href=email_signup.html');"> -->

                                                     

                                                     <table width="241" border="0">

                                                       <tr>

                                                         <td width="51" height="28"><div align="right">Name:</div></td>

                           <td width="180"><label>

                                                           <input name="name" type="text" id="name" size="34" />

                                                         </label></td>

                                                       </tr>

                                                       <tr>

                                                         <td height="28"><div align="right">Email:</div></td>

                                                         <td><label>

                                                           <input name="email" type="text" id="email" size="34" />

                                                         </label></td>

                                                       </tr>

                                                       <tr>

                                                         <td height="33">&nbsp;</td>

                                                   <td><label>

                                                           <input type="submit" name="submit" id="submit" value="Submit" />

                                                         </label></td>

                                                       </tr>

                                                     </table>

                                                 </form>

**************************emai_signup.html*********************

<form action="http://************list-manage.com/subscribe/post" method="post">
<input type="hidden" name="u" value="*******">
<input type="hidden" name="id" value="********">
<table cellpadding="5" cellspacing="0" border="0" align="center">

<tr>
<td align="right" class="formLabel" style="width: 115px;"><strong>Email Address:*</strong></td>
<td align="left">
    <input type="text" name="MERGE0" id="MERGE0" size="25" value="">
<br><span class="error"></span></td>
</tr>

<tr>
<td align="right" class="formLabel">First Name:</td>
<td align="left">
    <input type="text" name="MERGE1" id="MERGE1" size="25" value="">
<br><span class="error"></span></td>
</tr>

<tr>
<td align="right" class="formLabel">Last Name:</td>
<td align="left">
    <input type="text" name="MERGE2" id="MERGE2" size="25" value="">
<br><span class="error"></span></td>
</tr>




    
    <tr valign="top" id="merge-interests-100-1">
        
        <div style="display:none;">
        
	        <td align="right" class="formLabel">
          
            <td align="left" visibility="hidden">
                      <ul class="interestgroup_field" id="interestgroup_field_20129" ><li class="interestgroup_row" style="font-size:12px; margin-left:-100px;"><input type="checkbox" id="group_1" name="group[1][1]" value="1" checked>&nbsp;<label for="group_1">Text for checkbox</label></li></ul>
	        </td>
	        </td>
        
        </div>
        
    </tr>
    



<tr>
<td align="right">&nbsp;</td>
<td align="left"><input type="submit" name="submit" value="Subscribe">
</td>
</tr>
</table>
</form>

Open in new window

Author

Commented:
bump
Commented:
did this another way.
i need the solution