get info from previous joomla content page

Shows some Tutorials

get info from previous joomla content page

Postby 3big4u on Tue Jun 10, 2008 6:57 am

: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
3big4u
Fresh Boarder
 
Posts: 5
Joined: Tue Jun 10, 2008 1:09 am

Re:get info from previous joomla content page

Postby GreyHead on Tue Jun 10, 2008 7:12 am

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
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: 3892
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:get info from previous joomla content page

Postby 3big4u on Tue Jun 10, 2008 7:31 am

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
3big4u
Fresh Boarder
 
Posts: 5
Joined: Tue Jun 10, 2008 1:09 am

Re:get info from previous joomla content page

Postby GreyHead on Tue Jun 10, 2008 7:57 am

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:
Code: Select all
<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
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: 3892
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:get info from previous joomla content page

Postby 3big4u on Tue Jun 10, 2008 8:42 am

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
3big4u
Fresh Boarder
 
Posts: 5
Joined: Tue Jun 10, 2008 1:09 am

Re:get info from previous joomla content page

Postby GreyHead on Tue Jun 10, 2008 7:44 pm

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
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: 3892
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:get info from previous joomla content page

Postby 3big4u on Wed Jun 11, 2008 1:07 am

Thank you ver very much, I got it finally.

Have a nice day!

John Meng
3big4u
Fresh Boarder
 
Posts: 5
Joined: Tue Jun 10, 2008 1:09 am


Return to ChronoForms How To

Who is online

Users browsing this forum: admin and 7 guests