Hi,
I had quite a lot of text with one of my forms and found it helped my formatting to have a little more control over where the <form> tags were placed.
To do this I created {start_form} and {end_form} markers in the html tab in the admin section then hacked chronocontact.html.php showform() function like this:
Bob
PS this is using v2.<br><br>Post edited by: GreyHead, at: 2007/06/04 20:08
I had quite a lot of text with one of my forms and found it helped my formatting to have a little more control over where the <form> tags were placed.
To do this I created {start_form} and {end_form} markers in the html tab in the admin section then hacked chronocontact.html.php showform() function like this:
function showform( $rows , $imver )
{
global $mosConfig_live_site;
$paramsvalues = mosParseParams( $rows[0]->paramsall );
if ( !empty($rows[0]->name) ){
if ( !empty($rows[0]->scriptcode) ) {
echo "<script type='text/javascript'>\n
//<![CDATA[\n".$rows[0]->scriptcode."//]]>\n
</script>\n";
}
if ( !empty($rows[0]->submiturl) ) {
$actionurl = $rows[0]->submiturl;
} else {
$actionurl = 'index.php?option=com_chronocontact&task=send&chronoformname='
.$rows[0]->name;
}
$form = "<form name='ChronoContact_".$rows[0]->name."' method='$paramsvalues->formmethod'
action='$actionurl' ".$rows[0]->attformtag.">";
$rows[0]->html = str_replace('{form_start}', $form, $rows[0]->html);
$rows[0]->html = str_replace('{form_end}', '</form>', $rows[0]->html);
$rows[0]->html = str_replace('{imageverification}', $imver, $rows[0]->html);
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr><td>";
eval( "?>".$rows[0]->html );
echo "</td></tr></table>";
?>
Bob
PS this is using v2.<br><br>Post edited by: GreyHead, at: 2007/06/04 20:08