[FX.php List] Web compatibility of Scripts in FM7

Jane Chinn Jane.Chinn at cwu.EDU
Tue May 10 12:33:06 MDT 2005


I have been trying to trigger a script that sends an email in FM7 when 
a new record is created via a web form.  I see now that the script to 
send mail in FM7 is not compatible with the web.  This is indicted in 
the create new script window.  On the far left is a check box that 
says, "indicate web compatibility".  If you place a check mark there 
you will see that the send mail script option is grayed out.  I have 
been able to perform scripts with FX.php though that are compatible, 
including sorts and finds that take place in the database.

Can someone send me a chunk of code for sending an email when a new 
record is created.  It would be nice to simply add the code to the 
reply page that carries out the new record action.  I have done this 
with PHP and mysql in the past as follows:

   $subject = "Writing Center Request";
   $to = "uwc at cwu.edu\r\n";
   $headers = "From: $email\r\n";
   $headers .= "MIME-Version: 1.0\r\n";
   $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "Cc:  chinn at cwu.edu\r\n";

$message ="The following individual has submitted a Writing Center 
request:<br />
$FirstLast<br />
CWU Student ID  $StudentID <br /> Course  - $course<br />
EMail:  $email <br />
Instructor:  $instructor_last <br />
Due Date: $due_date<br />
Year in School: $year_in_school<br />
Title of Paper: $paper_title<br />
Question: $Question<br />
Body of Paper: $Paper";



Any suggestions on how to adapt this to FX.php?

Jane Chinn
Instructional Technologies Specialist
Central Washington University

More information about the FX.php_List mailing list