Let's see how this one script affects the other ones. Here's an illustrative diagram: NewMsg.php - > Sent message |____________________ | | Drafts Folder Sent Message FolderOptional Let's start with the NewMsg page. First you are presented with a form that will take the following input: To, Cc, BCc, Subject, Attachment and message text. All of these are required to send a valid email message. <table width="100%" border="0" class="block"> <tr> <td width="10%" valign="top"><strong>To</strong></td> <td width="90%"><input name="to" type="text" id="to" $r['to'];} ?>"/></td> </tr> <tr> <td valign="top"><strong>Cc</strong></td> <td><input name="cc" type="text" id="cc" size="70" $r['cc'];} ?>"/></td> </tr> <tr> <td valign="top"><strong>Bcc</strong></td> <td><input name="bcc" type="text" id="bcc" size="70" $r['bcc'];} ?>"/></td> </tr> <tr> <td valign="top"><strong>Subject</strong></td> <td><input name="sub" type="text" id="sub" size="80" value="<? if(isset($r['subject'])){ $r['subject'];} ?>"/></td> </tr> <tr> <td valign="top"><strong>Attachment</strong></td> <td> <input name="userfile" type="file" $r['attachment'];} ?>"/></td> </tr> <tr> <td valign="top"><strong>Message:</strong></td> <td><? $checked = false; if($checked){ ?> <textarea name="msg" cols="90" rows="9" $r['msg_body'];} } ?></textarea> <? if($checked){ // Automatically calculates the editor base path based on the // This is useful only for these samples. A real application // $oFCKeditor->BasePath = '/FCKeditor/' ; // '/FCKeditor/' is $sBasePath ='fckeditor/fckeditor.php'; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Value = 'This is some <strong>sample $oFCKeditor->Create() ; } ?> </td> </tr> <tr> <td> </td><*/span> <td><input type="submit" name="Submit" value="Send <input name="draft" type="submit" id="draft" <input name="save" type="checkbox" id="save" Save Sent Message</td> </tr> </table> The text in red shows a selection of choices. The first choice is to just send the message as is. The second gives you the option of saving the message as a draft, and the third choice gives you the option of saving the message in the "Sent Messages" Folder. Some of these choices can be made simultaneously and others cannot. For example, if you click on "save as draft" then the message will be saved in the drafts folder instead of being sent. On the other hand, if you want to send the message and save it in the sent folder, that is allowed.
blog comments powered by Disqus |
|
|
|
|
|
|
|