Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-15-2008 21:17:58

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Contact Form email

My contact form emails are coming out like this

Contact Information: First Name:

Contact Information: Last Name:

Contact Information: Telephone Number:

Contact Information: Email Address:

Contact Message: Message:

Image Verification: Image Verification:

Is it possible to remove the "Contact Information: " portion so it just reads First Name?

All I want is the actual field names to appear in the email.


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#2 06-17-2008 05:38:54

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: Contact Form email

Bump


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#3 06-17-2008 05:43:58

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Contact Form email

The notes are generated using the "Contact Message" mail item in the database which you may modify as desired through admin under Home > ClickCartPro > Mail: Messages, Mail and Subscriptions > Manage Mail Messages

Offline

 

#4 06-17-2008 05:53:59

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: Contact Form email

ok. How do I make  . $name .      "First Name:" instead of "Contact Information: First Name:"  ?

I don't see where . $name . is defined or can be altered anywhere in there.


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#5 06-17-2008 06:19:29

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Contact Form email

The short answer is, not easily sad  The Contact Information: is included in the $name variable which is defined in the foreach loop.  The value of it looks like this  (using the first name as an example):

Contact Information: First Name

If you change the foreach loop to look something like this the contact information wording should be removed (note that this example is for the text portion of the contact message ... you will need to adapt and add it to the XHTML version to change that also):

Code:

foreach ($display as $name => $value) {

     $name = str_replace("Contact Information: ",'',$name);

     print $name . ':' . $eol . $value . $eol . $eol;

} // End of foreach statement.

Offline

 

#6 06-17-2008 16:15:39

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: Contact Form email

Thanks! Worked great on the basic fields.

However I'm still getting

Contact Message: Message:

Image Verification: Image Verification:

How do I remove "Contact Message: " and "Image Verification: "?


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#7 06-17-2008 16:59:48

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Contact Form email

The same way smile  Replicate the $name = str_replace line twice and change one to read Contact Message:  and the other to read Image Verification: (both with the space after the colon).

Code:

$name = str_replace("Contact Message: ",'',$name);
$name = str_replace("Image Verification: ",'',$name);

Offline

 

#8 06-17-2008 18:27:26

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: Contact Form email

Got it thanks!


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

Board footer