Session button

Cycl0ps 10 Jan, 2011
Hi,

First of all thanks for the fast reply past time. Now i got an more difficult question to be honest.

I want to have an button on my joomla page wich gives an session. And after pressing the button I want an contact form and a way that the contact form knows wich previous page was behind it. Ill explain it easier.

For example i got an showroom full with kitchens. You can press easy kitchen that links to his own page. So for example we pressed kitchen #1.

And now we are at the page of kitchen #1.
On this page I have an button called "contact". When people press this button they come to an contact form for kitchens. Where they can fill in how big their kitchen is, windows, doors, etc, etc.

Now I want to add two things to that contact form.
#1 an invisble field for the costumer wich gives the value of the kitchen they pressed. (now kitchen #1). And that that value is given into the mail if they press the submit button of the contact form.

#2 I want the image of the kitchen above the contact form. So i can give the value of the first "contact" button like "234" and add an 234.jpg picture so the page gets the session id, and post it as an .jpg but my question is, is it even possible to post an image above the contact form.

I hope this question is clear and there is an sollution. Thanks in advance.
GreyHead 10 Jan, 2011
Hi Cycl0ps,

What's the button you have - is that a link? or mini-form?

Either way if you attach a parameter for the page to the the button you can read that on the next page and look up the appropriate info.

Bob
Cycl0ps 18 Jan, 2011
Hi greyhead,

Thanks for the reply, its an link to an other article in joomla.
Could you give an example code how i can give that parameter to the next page?
And maybe an example on how i can get that in Chrono forms?

Thanks in forward!
GreyHead 18 Jan, 2011
Hi Cycl0ps,

Add &page=234 to the url in the the link and then get the value in the Form HTML with
<?php
$page = JRequest::getInt('page', 0, 'get');
?>


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