The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need help coding php script to send form data to email, Form Submission
icanswim70
post Sep 12 2019, 03:01 PM
Post #1


Newbie
*

Group: Members
Posts: 15
Joined: 23-May 19
Member No.: 26,898



Hey everyone,

I got everything ready for launch, just need this last bit done.

Heres the form on the site (attached)

Heres what i need:

A php script to capture the "name" "email" and "enjoy" fields, and send them to my email address.

Code with fields i want to capture:

<div class="formstyle">
<form class="formz">
<p class="formtext">Your Name</p><input type="text" name="fullname" placeholder="What is your name?" required>
<p class="formtext">Your Email</p><input type="text" name="email" placeholder="What is your email address?" required>

<p class="formtext">Did you enjoy the site?</p>

<label class="yesandno">
<input type="checkbox" name="enjoy">
<span class="slider"></span>
</label><button type="submit">Submit</button>

</form></center>
</div>

If anyone can code it that'd be a massive help.

Thanks

This post has been edited by icanswim70: Sep 12 2019, 03:06 PM


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
icanswim70
post Sep 13 2019, 11:23 AM
Post #2


Newbie
*

Group: Members
Posts: 15
Joined: 23-May 19
Member No.: 26,898



It appears to have basic error checking, and I know theres other php validation measures you can take, but for the simplicity of this site i'm hoping what's in the script already will suffice.

My question was does everything look like its linked correctly and email will send?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 05:13 PM