Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Getting my contact form to Submit

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #189040
    David Baird
    Participant

    Hi all.
    First time delivering a Contact form.

    I have my Contact form HTML (supplied below) and now need to know how to create the matching .PHP file and what to do next to have responses from the form arrive to my email. Any help greatly appreciated.

    <!–Start Form–>

    <

    div>

    <h2>Don’t Hesitate to Get in Touch!</h2>
    <h3 class=”text-center”>Get Directions</h3>
    <iframe width=”960″ height=”350″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://maps.google.com/maps?ie=UTF8&sll=36.013490,-83.980821&q=5721+Scenic+Ridge+Rd,+Knoxville,+TN&hq=&hnear=5721+Scenic+Ridge+Rd,+Knoxville,+Tennessee+37912&ll=36.01349,-83.980821&spn=0.001432,0.00239&t=m&z=14&vpsrc=0&output=embed”></iframe><br /><small>View Larger Map</small>
    <form data-abide>

    <label>Name</label>
    <input type=”text” placeholder=”First and Last Name” />
    <label>Email</label>
    <input type=”email” required placeholder=”Email Address” />
    <small class=”error”>An email address is required.</small>
    <label>Phone</label>
    <input type=”number” placeholder=”(865)951-3077″ />
    <label>Business Name:</label>
    <input type=”text” placeholder=”Company Name” />
    <label>How did you hear about us?</label>
    <select> <option value=”Web”>Web</option>
    <option value=”Radio”>Radio</option>
    <option value=”TV”>TV</option>
    <option value=”Referral”>Referral</option>
    </select>
    <label>What are you interested in? (Check all that apply)</label>
    <input id=”checkbox1″ type=”checkbox”>
    <label for=”checkbox1″>Print Design</label>
    <input id=”checkbox2″ type=”checkbox”>
    <label for=”checkbox2″>Logo Design</label>
    <input id=”checkbox3″ type=”checkbox”>
    <label for=”checkbox3″>Web Design</label>
    <label>Message:</label>
    <textarea placeholder=”How can I help you?”>
    </textarea>

    <button type=”submit” class=”secondary”>Submit</button>
    </form>

    <!–End Form–>

    #189042
    __
    Participant

    It’s better to put large amounts of code on codepen, or make a gist on github. Formatting is difficult on the forums, and large blocks of code discourage readers. Also, not all of what you posted is relevant to your question: the map, for example, has nothing to do with your contact form.

    Do you understand how forms submit data? do you understand what happens to form data when it is submitted to PHP? Have you tried anything yet?

    http://php.net/manual/en/tutorial.forms.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.