get info from previous joomla content page

3big4u 10 Jun, 2008
:blush: HI, I found your ChronoEngine is very instesting. When I get started to learn this component, I came up a question.

I am going to build a reservation form, and this form is followed from a product introdcution page. So the time we get to the reservation page, we have to collect some information about the production page as previous. How could this happen?

I am not sure if I state clearly, simply, I need the form page can collect some information from Joomla content page, things like production code, or production name. It would be highly appreciated if you can answer this.

Thank you very very very much for your excellent soft.

John Meng
GreyHead 10 Jun, 2008
Hi John,

You can do this by adding a form on the content page. Collect the information you want in hidden form fields then link to the reservation form using either a link with the info in GET variables, or a Submit button with a Redirect URL which passes the info in POST variables.

Either approach works OK, which you choose depends on your particular needs.

Bob
3big4u 10 Jun, 2008
Hi, Dear Admin:

Thank you so much for your quick response, you are very helpful. Would it be more specific of how to build the form in content and how to connet these two forms, the reservation form and product content form. How can I hidden the first form.

I am sorry for loads of questions, sorry, I am a beginner. Is there any turials/

Anyway, really thank you deep in my heart.

John Meng
GreyHead 10 Jun, 2008
Hi John,

Check out w3schools.com for some good html & form tutorials. The PHP forms page is here

To create a hidden form, put something like this in the ChronoForms Form HTML box and use the ChronoForms mambot/plugin to show it on a content page:
<input type='hidden' name='product_id' value='product_999' />
<input type='submit' name='submit' value='Make reservation' />
All that will show on the page is a Submit button.

Bob
3big4u 10 Jun, 2008
I appreciate your fast response.

As I understand as follows:

1/.I have installed the manbots to make the forms turn up in contents.

2. I have input your code to build one form named productid
<input type='hidden' name='product_id' value='product_999' /> <input type='submit' name='submit' value='Make reservation' />

3. I have built another form named reservation, is there anycode requested.

How do I connect thest two forms to get the date from first form to the second? Sorry for the idiot.

I have check it up the tutourial page, and I don't understand, sorry.

Is it possible you bulid two formed for me as a sameple, and I restore it to obeserve.

If that is much work, you just put some words, anyway, thanks a million.

John Meng
GreyHead 10 Jun, 2008
Hi John,

Find the url for the second form from the link in the form manager. Open the second form to edit and put the link in the 'OnSubmit URL' on the 'Form URLs' tab.

Then when you submit the first form you should go directly to the second one.

Bob
3big4u 11 Jun, 2008
Thank you ver very much, I got it finally.

Have a nice day!

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