aussieworld
02-Jun-2007, 07:36 PM
Hi,
I am new with FormMail. I just spent the day learning some of its features and very impressed by it. No issue encountered. One point I am not too sure after digging into the How To and forums, it’s about the fmcompute.php
Can we use this feature without the FormMail Computation Module?
I tried to set-up a test form, such as:
...
<input type="hidden" name="fmcompute1"
value="
import function FMFatalError,FMFatalUserError;
import function FMUserError;
import string InitialVariable;
export string ResultVariable;" />
...
<tr>
<td>Compute</td>
<td><input type="text" name="InitialVariable" /></td>
</tr>
...
Then I created as fmcompute.php file :
<?php
$ResultVariable = '0';
if ($InitialVariable == '1') {
$ResultVariable = '1';
}
else {
$ResultVariable = '0';
}
echo "$ResultVariable";
?>
I can see that variable export is done, calculation is done, but the email is not sent.
It just stop after displaying the result.
Not sure what to do ...
Alain
I am new with FormMail. I just spent the day learning some of its features and very impressed by it. No issue encountered. One point I am not too sure after digging into the How To and forums, it’s about the fmcompute.php
Can we use this feature without the FormMail Computation Module?
I tried to set-up a test form, such as:
...
<input type="hidden" name="fmcompute1"
value="
import function FMFatalError,FMFatalUserError;
import function FMUserError;
import string InitialVariable;
export string ResultVariable;" />
...
<tr>
<td>Compute</td>
<td><input type="text" name="InitialVariable" /></td>
</tr>
...
Then I created as fmcompute.php file :
<?php
$ResultVariable = '0';
if ($InitialVariable == '1') {
$ResultVariable = '1';
}
else {
$ResultVariable = '0';
}
echo "$ResultVariable";
?>
I can see that variable export is done, calculation is done, but the email is not sent.
It just stop after displaying the result.
Not sure what to do ...
Alain