Greetings,
I have created a form and the results are email to the relevant party. However I would like to add the value for cf_id in the email.
Any ideas?
Cheers ws
<input type='hidden' name='cf_id' value='<?php echo $rows[0]->id ?>' />echo $html_message;
<?
$cf_id = 0;
$tablename = "jos_chronoforms_nn";
$query = "SHOW TABLE STATUS LIKE '$tablename'";
$result = mysql_query($query) or die ( "Query failed: " . mysql_error() . "
" . $query );
$row = mysql_fetch_assoc($result);
$cf_id = $row['Auto_increment'];
?><?php echo $cf_id ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<base href="http://www.xxxxxxxxxxxxx.au/" />
<style type="text/css">
</style>
</head>
<body>
sfff has submitted the following High service request.<br />
sfff would like to instigate "fff" with the following scope:<br />
sddfs
<br />
<br />
and the reason for this is:<br />
fsdfsdsdfsd
<br />
<br />
This request was submitted on the 27th of July 2007 and has been
assigned as Service Request Number (SRN): <?php echo $cf_id; ?>
</body>
</html>{requestorName} has submitted the following {priority} service request.<br />
{requestorName} would like to instigate "{projectName}" with the following scope:<br />
{scope}
<br />
<br />
and the reason for this is:<br />
{benefit}
<br />
<br />
This request was submitted on the {date} and has been
assigned as Service Request Number (SRN): <?php echo $cf_id; ?>
<?
$cf_id = 0;
$query = "SHOW TABLE STATUS LIKE 'jos_chronoforms_1'";
$result = mysql_query($query) or die ( "Query failed: " . mysql_error() . "
" . $query );
$row = mysql_fetch_assoc($result);
$cf_id = $row['Auto_increment'];
$html_message = str_replace( "#####", $cf_id, $html_message);
?>Users browsing this forum: No registered users and 7 guests