Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a sample code, which uses <code>SELECT</code>, <code>CHECKBOX</code>, <code>TEXTBOX</code> to get you going:</p> <pre><code> &lt;form name="prf_form" method="post" action="email.php"&gt; &lt;input type="text" class=tBox title="This should be a 'C-Level' or VP" id="eSponsor" name="esponsor"&gt;&lt;/input&gt; &lt;select name="sponsorinform"&gt; &lt;option value="Yes"&gt;Yes&lt;/option&gt; &lt;option value="No" SELECTED&gt;No&lt;/option&gt; &lt;/select&gt; &lt;input type=checkbox name="pj_regulatory" value="Regulatory" /&gt; Regulatory&lt;img src="bLine.png" width=20 /&gt;&lt;input type=checkbox name="pj_revenhancement" value="Revenue Enhancement" /&gt; Revenue Enhancement &lt;/form&gt; </code></pre> <p>The <code>email.php</code>:</p> <pre><code> // Clean up the input values foreach($_POST as $key =&gt; $value) { $_POST[$key] = stripslashes($_POST[$key]); $_POST[$key] = htmlspecialchars(strip_tags($_POST[$key])); } $esponsor = trim(strip_tags(stripslashes($_POST['esponsor']))); $sponsorinform = trim(strip_tags(stripslashes($_POST['sponsorinform']))); $pj_regulatory = trim(strip_tags(stripslashes($_POST['pj_regulatory']))); $pj_revenhancement = trim(strip_tags(stripslashes($_POST['pj_revenhancement']))); echo $esponsor; //displays the text entered echo $sponsorinform; //displays YES or NO echo $pj_regulatory; echo $pj_revenhancement; $sentMailSubject = "Project Request From $customerfname $customerlname"; // To send HTML mail, the Content-type header must be set $sentHeader = 'MIME-Version: 1.0' . "\r\n"; $sentHeader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers //$to = 'aidan@example.com' . ', '; // note the comma //$to .= 'wez@example.com'; // ^^^^^ for multiple email address $sentHeader .= 'From: ' . $customerfname . ' &lt;' . $userEmail . '&gt;' . "\r\n"; $sentMailBody = "TEST"; $toEmail = "youremail@yourdomain.com, someoneelse@some.com"; mail($toEmail, $sentMailSubject, $sentMailBody, $sentHeader); //send to us </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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