I am using Tinybox on a Codeigniter site for some functions like registering, login, viewing images, etc....
On the homepage of the site there is a small registration box that allows a user to enter a company email and company name. On submit this should then present a modal window with the full registration form. The Company Email and Company Name fields should already be filled in with whatever the user entered in the previous form.
I can't figure out how to get this to work.
Here is the code I am using -
Initial registration form -
<form>
<div class="tab">
<label for="preCompany">Company Name:</label>
<input type="text" size="20" id="preCompany" name="preCompany"/>
<br/>
<label for="preEmail">Corporate Email:</label>
<input type="text" size="20" id="preEmail" name="preEmail"/>
<br/>
<input type="submit" value="Continue..." onclick="TINY.box.show({url:'/register.php'}); return false;" />
</div>
</form>
And here is the full form that should open in a modal window and have some fields prepopulated -
<?php echo form_open('register/register_form'); ?>
<label for="email">Email:</label>
<input type="text" size="20" id="email" name="email"/>
<br />
<label for="company">Company:</label>
<input type="text" size="20" id="company" name="company"/>
<br/>
<label for="password">Password:</label>
<input type="password" size="20" id="password" name="password"/>
<br/>
<label for="name">Name:</label>
<input type="text" size="20" id="name" name="name"/>
<br/>
<label for="phone">Phone:</label>
<input type="text" size="20" id="phone" name="phone"/>
<br/>
<input type="submit" value="Register"/>
</form>
Any help on this would be greatly appreciated. Thanks.