Contact.PHP of CF7

Polytheist

Member
My static web template has a contact form known as "CF7". I have no problem with customizing CSS/HTML codes of the form but I can't design a contact.php page due to the fact that I'm unfamiliar with PHP coding. There are a lot of online tutorials to learn from but my question is, can I use ANY contact.php page designed for any CF7?
 
Code:
<section id="contact" class=" contact"><div class="container"><div class="row  row-fluid ">
    <div class="col-sm-8 col-md-offset-3 col-md-6 col-sm-offset-2 margin-top-140   text-center ">
        <div class="wrapper"><div class="animate fadeInUp" data-animation="fadeInUp" style="animation-duration: 0.8s;     animation-delay: 0s;     -moz-animation-duration: 0.8s;     -moz-animation-delay: 0s;     -webkit-animation-duration: 0.8s;     -webkit-animation-delay: 0s; ">
            <div class=" section-heading text-center">
                    <h1 class="heading heading-crossed">Contact</h1><p class="additional-heading">LOREM IPSUM.</p>
                </div></div>
        </div>
    </div>

    <div class="col-sm-12 col-md-offset-1 col-md-10 margin-bottom-140   text-left ">
        <div class="wrapper"><div class="animate fadeInUp" data-animation="fadeInUp" style="animation-duration: 0.8s;     animation-delay: 0s;     -moz-animation-duration: 0.8s;     -moz-animation-delay: 0s;     -webkit-animation-duration: 0.8s;     -webkit-animation-delay: 0s; ">
            <div role="form" class="wpcf7" id="wpcf7-f127-p9-o1" lang="en-US" dir="ltr">
<div class="screen-reader-response"></div>
<form name="" action="/MYWEBSITE/#wpcf7-f127-p9-o1" method="post" class="wpcf7-form" novalidate="novalidate">
<div style="display: none;">
<input type="hidden" name="_wpcf7" value="127">
<input type="hidden" name="_wpcf7_version" value="4.1.2">
<input type="hidden" name="_wpcf7_locale" value="en_US">
<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f127-p9-o1">
<input type="hidden" name="_wpnonce" value="8e51736f2a">
</div>
<div class="row">
<div class="col-md-6 text-left">
<div class="row">
<div class="control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
                    <span class="wpcf7-form-control-wrap text-137"><input type="text" name="text-137" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required form-control" aria-required="true" aria-invalid="false" placeholder="Name *"></span>
                </div></div>
<div class="control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
                    <span class="wpcf7-form-control-wrap email-615"><input type="email" name="email-615" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email form-control" aria-required="true" aria-invalid="false" placeholder="Email Address*"></span>
                </div></div>
<div class="control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
                    <span class="wpcf7-form-control-wrap text-339"><input type="text" name="text-339" value="" size="40" class="wpcf7-form-control wpcf7-text form-control" aria-invalid="false" placeholder="Website"></span>
                </div></div></div></div>
<div class="col-md-6 text-left">
<div class="row">
<div class="control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
                    <span class="wpcf7-form-control-wrap textarea-940"><textarea name="textarea-940" cols="40" rows="4" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required form-control" aria-required="true" aria-invalid="false" placeholder="Message *"></textarea></span>
                </div></div></div></div>
<div class="form-group col-xs-12 text-center margin-20">
        <input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit btn btn-default primary-typo">
    </div>
</div>
<div class="wpcf7-response-output wpcf7-display-none"></div></form></div></div>
        </div>
    </div>
</div></div></section>
 
If you want to run php the site needs to be installed on a server or you need to use something like xampp to turn your PC into a server.

CF7 needs a lot more than contact.php to make it work. In fact I'm surprised it's even part of your template as CF7 is a wordpress plugin not a standalone form. Unless this is a hacked version for static sites. So to answer your question - you can only use the contact.php they have supplied. Anything else will break the site.
 
Should also point out that ALL contact forms will only work if the site is installed on a server. Two reasons:
1. Form processing is done server side (using PHP, NET, ASP etc)
2. The mail/smtp function only works if you are connected to an email server.
 
a hacked version

LOL. HONESTLY I hope you don't consider that to be "Plagiarism" because I did a lot of things to customize the wordpress/original version. Too many elements got deleted or replaced by my own elements. The template no longer looks like the original/wordpress version.
 
Should also point out that ALL contact forms will only work if the site is installed on a server.

So that's the first step to take. I see...
I haven't uploaded my html template to Cpanel. I'm planning to do that later because I haven't finished editing the template.
 
LOL. HONESTLY I hope you don't consider that to be "Plagiarism" because I did a lot of things to customize the wordpress/original version. Too many elements got deleted or replaced by my own elements. The template no longer looks like the original/wordpress version.
Ah. If this was a wordpress theme the contact form won't ever work. It needs wordpress hooks to function.
I haven't uploaded my html template to Cpanel. I'm planning to do that later because I haven't finished editing the template.
Ok....
Do you mean use the cpanel filemanger to upload to the server? Cpanel is just an admin portal, all it does is connect to the server. You would be much better off using FTP to upload the files. Filezilla is my FTP client of choice.
 
Back
Top