Hi,
I'm trying to use the following in the form redirect url
I have the following code in the form JavaScript:
But can't get it to work
Is this even an option???
thanx again
mark
I'm trying to use the following in the form redirect url
index.php?option=com_chronocontact&chronoformname=settings&tmpl=component&cf_id=<?php echo $cfId;?>
I have the following code in the form JavaScript:
<?php
$user =& JFactory::getUser();
$usr = $user->get('id');
$database =& JFactory::getDBO();
$queryId = "SELECT cf_id, cf_user_id FROM `jos_chronoforms_settings` WHERE `cf_user_id` = '$usr' " ;
$database->setQuery( $queryId );
$resultId = mysql_query($queryId) or die(mysql_error());
$rowId = mysql_fetch_array($resultId) or die(mysql_error());
$cfId=$rowId['cf_id'];
?>
But can't get it to work
Is this even an option???
thanx again
mark