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.
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.
Offline
Bump
Offline
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
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.
Offline
The short answer is, not easily 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):
foreach ($display as $name => $value) { $name = str_replace("Contact Information: ",'',$name); print $name . ':' . $eol . $value . $eol . $eol; } // End of foreach statement.
Offline
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: "?
Offline
The same way 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).
$name = str_replace("Contact Message: ",'',$name); $name = str_replace("Image Verification: ",'',$name);
Offline
Got it thanks!
Offline