Goodmorning Bob,
Thanks for having a look again!
I'll try to explain what code I used and where.
First of all, I have a module with the following code. This module you find at the bottom of the product page.
<?php
if ( !$mainframe->isSite() ) { return; }
$article_id = JRequest::getInt('id', 0, 'get');
$title = '';
if ( $article_id ) {
$db =& JFactory::getDBO();
$query = "
SELECT `title`
FROM `#__content`
WHERE `id` = ".$db->quote($article_id)." ;
";
$db->setQuery($query);
$title = $db->loadResult();
}
?>
<div><a href='index.php?option=com_chronocontact&chronoformname=inforequestTEST&title=<?php echo $title; ?>' >Click here</a> to send us a request about<?php echo $title; ?>.
This links to the Chronoform inforequestTEST.
This form was built with the help of the wizard (awesome tool!). Later on, I added a piece of code you provided.
Here's all the form code:
<input type='hidden' name='Subject' id='title' value='<?php echo $title; ?>' />
<div class="form_item">
<div class="form_element cf_heading">
<h1 class="cf_text">Information Request: <?php echo $title; ?></h1>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 110px;">Company name</label>
<input class="cf_inputbox required" maxlength="150" size="20" title="" id="text_1" name="company" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 110px;">Name</label>
<input class="cf_inputbox required" maxlength="150" size="20" title="" id="text_2" name="cust_name" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 110px;">Email adress</label>
<input class="cf_inputbox required validate-email" maxlength="150" size="20" title="" id="text_7" name="cust_email" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 110px;">Comment</label>
<textarea class="cf_inputbox" rows="5" id="text_6" title="" cols="30" name="comment"></textarea>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_captcha">
<label class="cf_label" style="width: 110px;">Verification</label>
<span>{imageverification}</span>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_5" type="submit" />
</div>
<div class="cfclear">Â </div>
</div>
I would like the Title (product page) to appear in the form so the customer doesn't have to fill that out here. And the Title has to appear in the e-mail that is sent to my client.