Copy link to clipboard
Copied
Can someone help me with this please. Trying to embed html into the body of an email with this form. I need them to be able to click "submit" and the results be send directly to my email (or somewhere else only I can access). I could also use help with sending an email with the html in the body rather than as an attachment. This is my code:
<form method="post" action=action="form-to-email.php">
<div class="ax-border name ">
<input type="text" id="name" class="si-text-field form-textbox " placeholder="Full name">
</div>
</label>
<div class="ax-border phone ">
<input type="text" id="phone" form-textbox"
placeholder="Phone number">
<input type="submit" value="Submit"/>
</form>
<?php$to="ryanmandree@gmail.com";?>
I appreciate any and all help.
Thank you
Copy link to clipboard
Copied
Hello Ryan,
you could use this code from w3schools >>> Tryit Editor v3.5 >>> (I quote):
<!DOCTYPE html>
<html>
<body>
<h2>HTML Forms</h2>
<form action="/action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called "/action_page.php".</p>
</body>
</html>
... of interest from above see: If you click the "Submit" button, the form-data will be sent to a page called "/action_page.php".
Hans-Günter
Copy link to clipboard
Copied
Thank you. How will I then retrieve the responses from action page?
Copy link to clipboard
Copied
Have a look at Alt-Web Design & Publishing: Responsive Contact Form with Bootstrap 3.2 and PHP (Part 1)
Copy link to clipboard
Copied
You cannot put a form into an email and expect it to work. The form and processing script must reside on a web server. Email recipients must click a link that takes them to the website.
Copy link to clipboard
Copied
If you don't have access to a web server that supports form processing scripts, use a 3rd party service like Wufoo.com.