Highlighted

Can someone help with code to submit form directly to an email address

New Here ,
Mar 20, 2018

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

TOPICS
Dreamweaver | Mac OS issues, Learn Dreamweaver

Views

745

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Can someone help with code to submit form directly to an email address

New Here ,
Mar 20, 2018

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

TOPICS
Dreamweaver | Mac OS issues, Learn Dreamweaver

Views

746

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 20, 2018 0
Adobe Community Professional ,
Mar 20, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 20, 2018 1
New Here ,
Mar 21, 2018

Copy link to clipboard

Copied

Thank you.  How will I then retrieve the responses from action page?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 21, 2018 0
Adobe Community Professional ,
Mar 21, 2018

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 21, 2018 0
Adobe Community Professional ,
Mar 21, 2018

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.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 21, 2018 1
Adobe Community Professional ,
Mar 21, 2018

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. 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 21, 2018 2