Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use a variable with a mailto email address recepient
    primarykey
    data
    text
    <p>I am trying to have a mailto form that will send text entered to an email address entered above. The email form is the variable "to". how could I have it so when the form is up, someone enters their email the variable to is assigned that email. Here is my code. Thanks in advance -Ben</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;!--chtml include "//webinfo/incs/header.inc"--&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;Mailto Variable&lt;/title&gt; &lt;link href="/webinfo/webinfo.css" type="text/css" rel="stylesheet" /&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Mailto Basic Demo&lt;/h1&gt; &lt;form action="basic.mailto" method="post"&gt; &lt;tr&gt; &lt;td&gt;Your E-mail Address:&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="to" value="" size="55" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;table border="0" cellspacing="2" cellpadding="0"&gt; &lt;tr&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Name:&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="sendername" value="" size="55" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;Comments:&lt;/td&gt; &lt;td&gt;&lt;textarea name="comments" rows="15" cols="55"&gt; &lt;/textarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="submit" value="Send Comment" /&gt; &lt;input type="reset" value="Clear Comment" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;!--chtml include "//webinfo/incs/footer.inc"--&gt; &lt;/body&gt; &lt;/html&gt; Here is basic.mailto &lt;to&gt;"to"&lt;/to&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload