View Single Post
  #1  
Old 04-30-2009, 11:08 AM
rosdi is offline rosdi
Registered User

Join Date: Apr 2009
Posts: 1

Sad phMailer - add Subject EntryField

Hi,

I found this website from a posting in CubeCartForum.org. Nice contact us form.

I would like to change the email subject from "department" to new Subject EntryField. I add below before the message:

Code:
	<tr>
		<td width="30%" class="table_body">Subject:</td>
		<td width="70%" class="table_body"><input name="resubject" type="text" size="30" value="<?=stripslashes(htmlspecialchars($resubject));?>" /><span class="error_message">*</span></td>
	</tr>
Add below for Function Checkit:

Code:
	if(theform.resubject.value=="") {
		error+="You did not enter the subject\n";
	}
What else I need to add and change. I did try to change below:

Code:
$myemail=$emails[$emailsubject];
$emailsubject=$subjects[$emailsubject];
to

Code:
$myemail=$emails[$emailsubject];
$emailsubject=$resubject[$emailsubject];
The email subject will change as what I type in the Subject EntryField but only first word can be seen. Like if the subject is "Test". The email subject will be "T".

Please help.
Reply With Quote