Hi,
Since I had only tried your code examples on a Joomla 1.0.15 site I began to wonder if there may be a difference if I use the latest Joomla version, therefore I installed Joomla 1.54 on my hosts server and added the codes to a Chronoform I made. But when the page containing the code:
- Code: Select all
<!--Form HTML-->
<?php
$menu = $mainframe->get( 'menu' );
$params = new mosParameters( $menu->params );
$page_title = $params->get( 'header' );
?>
<input type="hidden" name="page_title"
value="<?php echo $page_title; ?>" />
<!-- On Submit code - before -->
<?php
$rows[0]->emailsubject = $_POST['page_title'];
?>
was opened in Explorer I only got the 500 server error message. When I cleaned the form from the code above, the page loaded all right.
I hope you may be able to give me some advice on this question. The forms are meant to be used on a travel agency's website, where it would be very convenient to use the same form for all destinations, when the purpose is for the visitor to ask for more information on a specific destination.
If there are more users who need this feature maybe it could be implemented in a future version of this fine and useful extension.
Yours sincerely
--Mats Arvendal