Hello guys,
I wanted to know if you can change a contact form.
Can I insert or delete a field in html?
and then how do I manage the php files attached to it?
See the .jpg attachment.
Thank you for the reply
2 replies · opened Sep 6, 2017
Hello guys,
I wanted to know if you can change a contact form.
Can I insert or delete a field in html?
and then how do I manage the php files attached to it?
See the .jpg attachment.
Thank you for the reply
Hello,
This is Definitely Possible! There are 3 Steps to configure a New Field in the include/sendemail.php File:
$name = isset( $_POST['template-contactform-name'] ) ? $_POST['template-contactform-name'] : '';Example:
$newfield = isset( $_POST['template-contactform-newfield'] ) ? $_POST['template-contactform-newfield'] : '';Make sure that the template-contactform-newfield is same as the Form Input’s name attribute in the HTML.
$name = isset($name) ? "Name: $name
" : '';Example:
$newfield = isset($newfield) ? "New Field: $newfield
" : '';$body = "$name $email $phone $service $message $referrer";Example:
$body = "$name $email $phone $newfield $service $message $referrer";This will definitely work fine.
Hope this Helps! Do let us know if we can help you with anything else or if you find any further issues with Canvas.
Perfect, I try as you suggest,
thank you very much.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard