passing information using multiple forms

Post any questions you may have here

passing information using multiple forms

Postby Kriss on Tue Jul 15, 2008 11:38 am

I am using tabs with multiple forms as an order form. I would like the user to submit just once when the order is completed.

When the user clicks the submit key on the final tab, none of the information from the previous forms on the prior tabs is submitted. How do I go about rectifying this.

TIA Kriss

http://www.planetearthfiber.com/index.p ... &Itemid=89
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby admin on Wed Jul 16, 2008 10:59 am

Kriss,

put your tabs code in one form only, and of course you will separat the whole form code with tabs this time, not very tidy but this what will work now!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:passing information using multiple forms

Postby Kriss on Wed Jul 16, 2008 6:15 pm

I am not sure I understand. ?????
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby Kriss on Wed Jul 16, 2008 6:59 pm

I think this is the code that you are refering to.


<?php
$tabs = new mosTabs(1);
$tabs -> startPane( 'fiber' );
$tabs -> startTab( 'Contact Information', 'tab_1' );
?>

<?php
$tabs -> endTab();
$tabs -> startTab( 'Silk', 'tab_2' );
?>
<?php
$tabs -> endTab();
$tabs -> startPane( 'Silk' );
$tabs -> startTab( 'Beaded Silk', 'tab_3' );
?>

<?php
$tabs -> endTab();
$tabs -> startTab( 'Sequin Silk', 'tab_4' );
?>

<?php
$tabs -> endTab();
$tabs -> startTab( 'Shipping Instructions', 'tab_5' );
?>

<?php
$tabs -> endTab();
?>
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby Kriss on Wed Jul 16, 2008 7:52 pm

This is a link to the form. Unfortunately, there are no tabs. :(

http://www.planetearthfiber.com/index.p ... name=fiber

Do you see anything in the code that I could have overlooked. B)
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby admin on Wed Jul 16, 2008 7:58 pm

Hi Kriss,

no, you had something like this :

{tab1} mambot form1 here
{tab2} mambot form2 here

all this was in an article

make it like this :
{tab1} code of form1 here
{tab2} code of form2 here

then add this to a the main form and Enable Mambots for this form (set Enable mambots = Yes in form parameters)

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:passing information using multiple forms

Postby Kriss on Wed Jul 16, 2008 8:41 pm

So I just want to make sure I understand.

I take the mambot code from the article. ( I have removed the chronoform tags).

{tab=Store Information} Please click on each tab to complete your order.

[color=#0000FF]code relating to store information[/color]

{tab=Silk}

code relating to silk

{tab=Beaded Silk}

code relating to beaded silk

{tab=Sequined Silk}

code relating to sequin silk
{tab=Additional Requests}

code relating to additional Requests


Am I getting close? :unsure:

Thanks Kriss
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby admin on Thu Jul 17, 2008 8:42 am

yes, then throw all this inside some form and set Enable mambots to yes! :)

Cheers

MAx
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:passing information using multiple forms

Postby Kriss on Thu Jul 17, 2008 9:55 am

Max:

I have all the code in one form as discussed with the Mambot enabled. I even uninstalled and reinstalled the mambot making sure that I was using the right version for 1.5.

This is the result. http://www.planetearthfiber.com/index.p ... name=fiber

Tom B)
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby GreyHead on Fri Jul 18, 2008 10:00 am

Hi Tom,

I'm coming to this late as I've been away for a few days. This code is inside a chronoforms form - what are you using for the tabs? Do you have the Tabs & Slides plugin? Or something else?

Do you have 'Enable mambots' checked on the Form General tab?

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3966
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:passing information using multiple forms

Postby Kriss on Fri Jul 18, 2008 2:25 pm

Bob: Thanks for you info. It now works. :woohoo: I went back and looked at everything again and it now works! The mambot was disabled.

I tested the form and only the information on the final tab where submit button is located was sent.

Tom
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby GreyHead on Sat Jul 19, 2008 9:16 am

Hi Tom,

One step forward then!! Please take a Form Backup from the ChronoForms Form manager and post it here or email it to me and I'll see if I can work out why all the data isn't saving.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3966
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:passing information using multiple forms

Postby admin on Sun Jul 20, 2008 6:05 pm

Kriss,

it doesnt make any sense that only the last form data getting saved, I think you are not putting <form tags between tabs!!?? if so remove them!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:passing information using multiple forms

Postby Kriss on Mon Jul 21, 2008 2:12 pm

No data of any kind is saved to the database and only the info in the last tab is sent in the e-mail. I do not use the <form> tag anywhere.
Live free or die
Kriss
Fresh Boarder
 
Posts: 16
Joined: Sun Apr 27, 2008 9:20 am

Re:passing information using multiple forms

Postby GreyHead on Mon Jul 21, 2008 2:24 pm

Hi Tom,

Quote from the email I sent you on Saturday:
Near the beginning you have a typo in <table witdh="400" cellpadding="5"> - should be 'width'. However, this line should be deleted and an extra </table> tag added at the end of the first tab. Once this is done the form works OK for me.
The Tabs and slides plugin doesn't work if there are open tags between the tabs. You have two table tags that aren't closed in the first tab.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3966
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: Google [Bot], MSN [Bot], Yahoo [Bot] and 2 guests