Multiple submit actions

cjmicro 07 Aug, 2008
We have a directory listing, where we would like it to work this way:

People either submit their info for the directory and pay to be a registered user, or they can submit their info for the directory without becoming a registered user (no pay).

I have searched the forum and seen some info on multiple submit buttons, but nothing that seems to be what it is I need to do.

What I was thinking was to create a chrono form that uses cb registration plugin, then give people the option to submit then pay, which will fill in cb reg and give them a user acct, then another submit button that allows them to submit info which will just be emailed, but NOT give them a username on CB... just pass the info through to the email and tables.

Can anyone help me with the easiest way to do this?

Thanks in advance,

Cheryl
Max_admin 07 Aug, 2008
Hi Cheryl;

you will need some PHP code to check which button has been clicked, this one really need some special case coding🙂

cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cjmicro 07 Aug, 2008
Ok, I have a programmer that can probably help me, so if you can just let me know what it needs to do (check which button is clicked then send it somewhere else?) I can have her work on it.

The other idea I had was to have 2 forms, each with their own submit button.

Click here to include yourself in the directory WITHOUT membership...
Click here to include yourself in the directory WITH membership. Then they fill in the info and it redirects to a payment page.

I think that would work and not cost extra.

Cheryl
Max_admin 07 Aug, 2008
yes, that will work too!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cjmicro 07 Aug, 2008
Ok, thanks again for the help!

Cheryl
GreyHead 07 Aug, 2008
Hi cheryl,

I built an app a while back that works like this. The brief was to have three signup buttons: all three register the user on Joomla, two validate membership against an external database; another pair transfer to PayPal for paid subscriptions (the third is free).

Basically I did this with one form for the front end which has three buttons, each of these links to a second form but passes on some info (through a GET variable here but it could have been a Submit value or a hidden field).

The second form shows a signup form that has some common fields but also shows some fields depending on the GET parameter. The back-end of this form does all the other processing including Joomla sign-up, membership checking saving records in a couple of databases (transaction and membership) and then hands over to PayPal.

There are plusses and minusses to using one form or two - or three. If there is reasonable similarity / overlap of functionality then I much prefer to use one.

This is also a Directory application but that's handled through a slightly tweaked SOBI2.

Drop me a pm or an email if you'd like to know more.

Bob
This topic is locked and no more replies can be posted.