WebCenter Contact Us Form

Hello, I need to create a "Contact Us" form in my custom webcenter application. Does anyone have a solution that they can provide?
I created a Java class sendEmail.java (see below), how do I call the send method from a jspx page and pass in the values of several af:inputText components?
package my.portal.application.portal;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class sendEmail
    String to,from,host,message;
    public void send(String xto, String xfrom, String xhost, String xmessage){
        setTo(xto);
        setFrom(xfrom);
        setHost(xhost);
        setMessage(xmessage);
        // Get system properties
        Properties properties = System.getProperties();
        // Setup mail server
        properties.setProperty("mail.smtp.host", host);
        // Get the default Session object.
        Session session = Session.getDefaultInstance(properties);
        try{
           // Create a default MimeMessage object.
           MimeMessage message = new MimeMessage(session);
           // Set From: header field of the header.
           message.setFrom(new InternetAddress(from));
           // Set To: header field of the header.
           message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
           // Set Subject: header field
           message.setSubject("AcqPortal Feedback");
           // Now set the actual message
           message.setText(getMessage());
           // Send message
           Transport.send(message);
        }catch (MessagingException mex) {
           mex.printStackTrace();
    public void setTo(String to) {
        this.to = to;
    public String getTo() {
        return to;
    public void setFrom(String from) {
        this.from = from;
    public String getFrom() {
        return from;
    public void setHost(String host) {
        this.host = host;
    public String getHost() {
        return host;
    public void setMessage(String message) {
        this.message = message;
    public String getMessage() {
        return message;
}

That's basic ADF/JSF.
Register your class as a managed bean in the faces-config.xml
Add accessors for your to, from and message attribute:
public void setTo(String to){this.to = to;}
public String getTo(){return to;}Also change the signature of your send method to
public void send(ActionEvent e)Same for from and message.
On your JSPX page add the inputText for the fields:
<af:inputText value="#{yourBean.to}" id="txtTo"/>
<af:inputText value="#{yourBean.message}" rows="5" id="txtMessage"/>
And then the button that will execute the command:
<af:commandButton actionListener="#{yourBean.send}" text="Send Mail"/>
This should give enough guidance :)
You can also read this part of my tutorial: http://yonaweb.be/webcenter_tutorial/part_6_building_taskflow_and_consuming_it_webcenter_portal
It should give basic info on how to write forms and pass info to managed beans.

Similar Messages

  • Direct CTI Integration with Oracle Contact Center Form

    Hi,
    We are on 11.5.10.2 and we are trying to implement the "Direct CTI Integration" solution that Oracle suggested to enable Screen Pop in contact center form based on data coming from a third party CTI. In our case we are using Genesys TServers for CTI.
    In this document (The equivalent R12 document is on metalink titled DIRECT CTI Integration - Oracle EBS Contact Center & Third Party CTI [ID 734902.1]), Oracle solution involves little to no coding from the Oracle Apps side other than a few profile setups. We are not able to get started on this because we did not find some of the profile options. And the forms did not have the changes that Oracle said it should have. Obviously, we need to apply some patches but not sure which one.
    I am wondering if there are any users and customer who have implemented a similar solution that can help us get started.
    Thanks.
    Regards,
    Venkat

    It has been a while since we did a test of the Direct CTI integration at my company. We are on a 12 release so the patches are included, unfortunately I can't help there.
    Word from the Wise: Be Prepared....
    The only development on the Oracle side that was necessary was the configuration of the profile settings. You select a port in the settings which will then instantiate an http listener on the user's thin client.
    The development on the CTI side is intensive....you must code an http listener on your client CTI to enable two way communication between the Oracle thin client and your 3rd party CTI client (most likely residing on the desktop of the user PC, in my case, Cisco CTIOS).
    Unless Oracle has since changed their model, you cannot just send a blind screen pop to the Oracle client due to the required 2 way communication. There are a lot of request/response's involved (registers, readys, etc). While it is absolutely necessary for an HTTP listener to exist on the Oracle side, I believe that it is unnecessary to have the level of communication required from the 3rd party CTI. The CTI needs the call control, I just don't believe that Oracle needs to know about it.
    If I have incorrectly interpreted or understood the model/options, I hope someone can correct me.
    Thanks,
    Derek

  • Customization of the Contact Create form

    Hi Gurs,
    I am fuacing a Problem in the Contact Create form for customization.
    In this form while saving the contact it shows the pop up as "both first name and last name or atlease one should be filled for create contact" here my requirement is to make another 2 more fields phone and email as mandatory
    for that i have done forms personalization and done validation for those 2 fields in Custom.pll.
    Here whats happening is, as those two fields are required ,with out entering date to those fileds and given to first name only then clicking on the save button contact is creating but,when ever the fields in the form are mandatory(required) meens those should be filled other wise it will not allows us to save....why it is happening like this way???
    i tried using raise form trigger failure also in the custom.pll but no use.
    please help me to solve this issue.
    Thanks,
    Geetha.

    hi,
    Why can't u go for a PL/SQL procedure.
    that would more easy.
    And now , are using the query returned values for some display . In the sense . are you going to display these values in a web page or going write these values into a file.
    For both of the issues PL/SQL Procedure is a better option.
    bye,
    Trinath Somanchi.

  • Best way to create a Contact Us form

    What is the best way to create a contact us form?
    I created mine using a table and the form sleection of DW CS6.
    Thanks!
    Janelle

    Creating the form itself is really only half the job.
    You can have a marvelous form created using html and DW's built in form items. Those items can be in a table, or not, that part is up to you. The next step is making the form "do something".
    The simplest way to make a form work, is a mailto: link in the form action attribute, but it's the absolute worst way to go. Mailto: links require the viewer to have an email client installed and set up on the computer they're using to submit your form. If they don't (as in the case of Gmail, htomail, yahoo, etc mail users) when they click Submit, absolutely nothing will happen.
    Another drawback of using a mailto: link for your form submission is that email address is now open to every spam email harvester on the internet. If you like certain "blue pill emails" then there wouldn't be an issue, but if you are like the majority of society, you won't be sending funds to any Nigerian doctors either and won't want to be spammed constantly.
    Personally, I use the Formmail script, available for free at http://www.tectite.com for pretty much all of my html forms. As long as your server has PHP installed (most do) the Formmail script will work very well for you. They have a ton of "How To" info on their site and the script itself is very robust with loads of features you can use, or not, at your discretion. They also have a very well documented troubleshooting section and a searchable forum that take care of the most common issues you run into.
    Your next step is "find out what server scripting language you have available on your server". From there, you'll need to find/write a compatible script, then attach your form to it.

  • Good night there is a possibility to change the Apple ID password since it can not contact the former owner of the iphone 4 handset

    ood Night, can someone tell me if the possibility of changing apple id because i have an iphone 4 and apple can not enter the command to the User Torcar. obigado

    If you cannot contact the former owner of the phone, it is useless to you.  There is nothing you, Apple or any of us users on this forum can do.  That's the purpose of Activation Lock.

  • Flash Contact Us Form

    Hey Everyone,
    I need to get a contact us form in a flash site to send an
    email to me when someone submits it. I bought a template (
    http://www.graphicworx.us/details.php?gid=100&sgid=&pid=252)
    and it has an area for contact us, but the form doesnt actually
    work. The template seemed easy enough to be able to get to that
    page, took some searching in there, so i just need to somehow add
    some action script that can send me the info.
    Any ideas?

    Please delete one occurance of this, it got double
    posted.

  • Contact Us Form

    Office 365 Share-point. I'm using the Microsoft Contact Us form and it works fine. Accessing the mail is the problem as the mailbox
    Accessing referenced file
    _catalogs/masterpage/seattle.master
    from
    /Forms/Lists/Submissions/AllItems.aspx
    is not allowed because the reference is outside of the App Web.
    Not sure if this means I can't access due to the template "Seattle" or is it something else
    Any ideas greatly appreciated.

    Hi,
    According to your post, my understanding is that you failed to access the mail.
    Please make sure you add the Microsoft Contact Us correctly.
    For more information, you can refer to:
    Add a Contact Us Form app to your website - SharePoint Online for enterprises
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Problems with contact email form

    Hi there,
    So I've been having lots of problems with getting an email form to work in my flash website.
    The contact email form I've been attemping to get to work can be found here:
    http://www.webdesignmo.com/blog/2008/08/14/flash-contact-form-in-actionscript-3/
    When I start a new flash movie from scratch and follow the instructions on the site, everything works great. However, when I try to create this form within a movie symbol within my current flash site, nothing works at all. I've tried placing the submit button within the movie symbol and without and neither works. I guess my question is, why would this happen? In which circumstances would placing a form like this inside of a movie prevent the form from functioning? For instance, when I tes tthe movie, fill out the form and press the submit button, nothing happens.
    Can I get some advice for whether I need to rethink implementing this form into a current flash video and what things I should check for?
    Thanks so much!
    Using CS3 btw.

    you probably have path problems.  use the trace() function to help debug your flash.

  • Contact Us form not sending information from form

    I have wasted days trying to figure out what I need to do to get this form to work and I realize this is way over my head.   I am a novice with Dreamweaver and I am trying to figure out what the person before me did (who also was a novice).  I am very confused.  Can someone help me please?
    Here is the html for the contact us page in question:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
        <head>
            <title>Americanwestjets.com</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Designed and developed by Codify Design Studio - codifydesign.com"/>
            <link rel="stylesheet" type="text/css" href="Templates/Publish/stylesheet.css" />
            <script src="Templates/Publish/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
            <link href="Templates/Publish/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
        <meta name="Description" content="Americanwestjets.com
    " />
        <meta name="Keywords" content="American West Jets, airlines, love, pacific, fun, vacation, free, discount" />
        <style type="text/css">
        body {
        background-color: #FF9;
        body,td,th {
        color: #006;
        #apDiv1 {
        position:absolute;
        left:42px;
        top:408px;
        width:643px;
        height:2px;
        z-index:1;
        background-color: #FF9900;
        overflow: auto;
        #apDiv1 {
        background-color: #306;
        background-image: url(images/%5Bwallcoo_com%5D_blue_sky_white_clound_010hdfn.jpg);
        background-repeat: repeat;
        border-top-width: thin;
        border-right-width: thin;
        border-bottom-width: thin;
        border-left-width: thin;
        border-top-style: solid;
        border-right-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-top-color: #933;
        .contentArea .container .contentleft #marketsurvey p label {
        color: #000;
        </style>
        <script type="text/javascript">
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
        </script>
        </head>
    <body bgcolor="#FFFF99" text="#000066" link="#FF66FF" vlink="#00FF00" alink="#9933CC">
          <div class="bannerArea">
    <div class="container">
                    <div class="bannernav"></div>
                    <div class="toplogo"></div>
                    <div style="clear:both;"></div>
                </div>
            </div>
            <div class="topnavigationArea">
                <div class="container">
                    <div class="topnavigationgroup">
                        <ul id="MenuBar1" class="MenuBarHorizontal">
                            <li><a href="index.html">Home</a>                        </li>
                            <li><a href="Reservations.html" class="MenuBarItemSubmenu">Reservation</a>
                              <ul>
                                <li><a href="flight schedule.html">Flight Schedule</a></li>
                              </ul>
                            </li>
                            <li><a href="Daily Savings.html">Daily Savings</a></li>
                        <li><a href="about us.html">About Us</a>                      </li>
                            <li style="border-right-style: solid;"><a href="contact us.html">Contact Us</a>                        </li>
                        </ul>
                    </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
            <div class="contentArea">
                <div class="container">
                    <div class="contentleft">
                        <h1>Contact Us: Market Survey</h1>
                        <p>Please complete the following form to receive a $50.00 coupon on your next flight with American West Jets! Don't miss out and let your friends and family know this amazing premiere limited time offer! </p>
                        <p> </p>
                          <form id="marketsurvey" name="marketsurvey" method="post" action="contact.php">
                        <p>First Name:
                  <label for="first name"></label>
                            <input name="first name" type="text" id="first name" size="30" maxlength="30" />
                          </p>
    <p>Last Name:                     
      <label for="last name"></label>
      <input name="last name" type="text" id="last name" size="30" maxlength="30" />
    </p>
                          <p>Email Address:
                            <input name="email address" type="text" id="email address" size="40" />
                          </p>
                          <p> </p>
                          <p>Where do you fly most frequently?</p>
                          <p>
                            <label for="where do you fly"></label>
                            <label>
                              <input type="checkbox" name="CheckboxGroup2" value="checkbox" id="CheckboxGroup2_0" />
                              North America</label>
                            <br />
                            <label>
                              <input type="checkbox" name="CheckboxGroup2" value="checkbox" id="CheckboxGroup2_1" />
                            South America    </label><br />
                            <label>
                              <input type="checkbox" name="CheckboxGroup2" value="checkbox" id="CheckboxGroup2_2" />
                              Europe</label>
                            <br />
                            <label>
                              <input type="checkbox" name="CheckboxGroup2" value="checkbox" id="CheckboxGroup2_3" />
                              Asia</label>
                            <br />
                            <label>
                              <input type="checkbox" name="CheckboxGroup2" value="checkbox" id="CheckboxGroup2_4" />
                              Australia/South Pacific</label><br />
                            <br />
                          </p>
    <p>How often do you fly?</p>
                          <p>
                            <label>
                              <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
                              4 or more times per year
                            </label><br />
                            <label>
                              <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
                              1-2 times per year</label>
                            <br />
                            <label>
                              <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
                              Rarely</label>
                            <br />
                            <label>
                              <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
                              Never</label>
                            <br />
                            <br />
                          </p>
    <p>Which airline(s) do you usually fly with?</p>
    <p>
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_0" />
        Air Pacific
      </label>
      <br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_1" />
        American</label><br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_2" />
        Delta</label>
      <br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_3" />
        Hawaiian</label>
      <br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_4" />
        Jet Blue</label>
      <br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_5" />
        Southwest</label>
      <br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_6" />
        United</label><br />
      <label>
        <input type="checkbox" name="CheckboxGroup1" value="checkbox" id="CheckboxGroup1_7" />
        Other</label>
      <label>
        <input name="other airlines" type="text" id="other airlines" size="70" maxlength="80" />
      </label>
      <br />
      <br />
    </p>
                          <p>If adult tickets were for ages 17 and higher, would you bring your children with you on your vacations?</p>
                          <p>
                            <label for="children more often on trips"></label>
                            <label>
                              <input type="radio" name="RadioGroup3" value="radio" id="RadioGroup3_0" />
                              Yes, I would bring my children</label>
                            <br />
                            <label>
                              <input type="radio" name="RadioGroup3" value="radio" id="RadioGroup3_1" />
                              No, I would not bring my children </label>
                            <br />
                          </p>
    <p>Would you subscribe for exclusive daily savings, coupons, and vacation packages via email?</p>
                          <p>
                            <label>
                              <input type="radio" name="RadioGroup4" value="radio" id="RadioGroup4_0" />
                              Yes, I would love to subscribe.</label>
                            <br />
                            <label>
                              <input type="radio" name="RadioGroup4" value="radio" id="RadioGroup4_1" />
                              No, I do not wish to subcribe at this time.</label><br />
                          </p>
    <p>
      <input name="Submit" type="submit" id="Submit" onclick="MM_validateForm('first name','','R','last name','','R','email address','','R');return document.MM_returnValue" value="Submit" />
      <input type="reset" name="reset" id="reset" value="Reset" />
              </p>
    <p>       </p>
                      </form>
                        <p> </p>
    <p> </p>
                  </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
            <div class="footerArea">
                <div class="container">
                    <div class="copyright">&copy; 2011 American West Jets. All rights reserved.</div>
                </div>
            </div>
            <script type="text/javascript">
            <!--
            var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
            //-->
            </script>
        </body>
    </html>

    Sure - here it is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    </body>
    </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    </head>
    <body>
    <!-- Reminder: Add the link for the 'next page' (at the bottom) -->
    <!-- Reminder: Change 'YourEmail' to Your real email -->
    <?php
    $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
    $visitor = $_POST['visitor'];
    $visitormail = $_POST['visitormail'];
    $notes = $_POST['notes'];
    $attn = $_POST['attn'];
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    die ("Use back! ! ");
    $todayis = date("l, F j, Y, g:i a") ;
    $attn = $attn ;
    $subject = $attn;
    $notes = stripcslashes($notes);
    $message = " $todayis [EST] \n
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    $from = "From: $visitormail\r\n";
    mail("[email protected]", $subject, $message, $from);
    ?>
    <p align="center">
    Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />
    Attention: <?php echo $attn ?>
    <br />
    Message:<br />
    <?php $notesout = str_replace("\r", "<br/>", $notes);
    echo $notesout; ?>
    <br />
    <?php echo $ip ?>
    <br /><br />
    <a href="thankyou.html"> Next Page </a>
    </p>
    </body>
    </html>
    Thank you!

  • Contact Page Form

    Hi all
    I am trying to have a basic contact form for my website with the following fields
    Name*
    Phone Number
    Email Address*
    Message*
    and then Email to my Email address once submitted can anyone help me sort one out please?

    Below is the HTML5 form.  Contact your host and ask them if they have form-to-email scripts you can use.  Some do; some don't.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Sample HTML5 Form</title>
    <style>
    /**BEGIN FORM STYLES**/
    #form1 {
    font-size: 14px;
    width: 500px;
    margin: 0 45px; /**adjust margins as needed**/
    background: #FFF;
    border: 2px groove green;
    padding: 7px 14px 7px 14px;}
    fieldset {
    margin-bottom:5px;
    border-right:none;
    border-bottom:none;
    border-left:none;
    legend {
    padding: 8px;
    border: 1px solid silver;
    background: #009900;
    font-weight: bold;
    color: #FFF;
    line-height: 1.5;
    margin-left: -45px;
    /**for IE6 only**/
    *margin-left:0;
    /**wrap form lables and fields inside ordered lists for better web accessibility**/
    #form1 ol {
    list-style:none;
    margin:0;
    padding:0}
    #form1 li {
    padding:5px;
    margin: 0;
    clear: left;
    #form1 label{
    display:inline-block;
    font-weight:bold:
    float:left;
    line-height: 23px; /**lines up labels with fields**/
    width:167px;
    font-size: 16px;
    color: #666;
    text-align:right;
    margin-right: 10px; /*space between labels, fields*/
    #form1 input,
    #form1 textarea {
    width: 190px; /**same width on text fields**/
    padding: 5px;
    color: #666;
    border: 1px dotted #009900;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 12px;
    /**field background on focus**/
    input:focus,
    input:active,
    textarea:focus,
    textarea:active
    {background-color: #EBECDE; border: 1px solid;}
    #submit {
    background: #009900;
    font-size: 18px;
    color:#FFF;
    font-weight: bold;
    border: 2px outset #FFF}
    #submit:hover,
    #submit:focus,
    #submit:active {
    background: #006600;
    color: yellow;
    border: 2px inset #FFF}
    /**END FORM STYLES**/
    </style>
    </head>
    <body>
    <!--BEGIN HTML FORM, action="path to form-processing script on your server" -->
    <form id="form1" action="path/your-formtoemail-script.php" method="post" enctype="multipart/form-data" name="form1">
    <h3>HTML Contact Form</h3>
    <fieldset>
    <legend>Required Fields:</legend>
    <!--for trapping spam bots  -->
    <input name="config" type="hidden" value="0">
    <input type="text" id="nospam" style="display:none">
    <ol>
    <li>
    <label for="name">Name:</label>
    <input name="name" id="name" type="text" onClick="this.value='';" placehoolder="First and Last" required="required">
    </li>
    <li>
    <label for="email">E-mail:</label>
    <input name="email" type="email" id="email" placeholder="[email protected]" onClick="this.value=''" required="required">
    </li>
    </ol>
    </fieldset>
    <fieldset>
    <legend>Optional Fields:</legend>
    <ol>
    <li>
    <label for="phone">Phone:</label>
    <input name="phone" id="phone" type="text" placeholder="123-456-7890">
    </li>
    <li>
    <label for="message">Message:</label>
    <textarea id="message" name="message" placeholder="250 characters max" onClick="this.value=''"></textarea>
    </li>
    <li>
    <label for="submit"> </label>
    <input type="submit" name="submit" id="submit" value="Submit">
    </li>
    </ol>
    </fieldset>
    </form>
    <p><!--END OF FORM --></p>
    </body>
    </html>
    Nancy O.

  • Muse CC 2014 contact web forms problems

    Hi I recently created a website using muse cc 2014 and I uploaded it to the hosting server a free one at freehosting.com I set up everything I know of and when I uploaded the site using muse it gave a error message saying something about PHP mail??? I setup the mail account for my admin user and entered that in the muse contact form. If I test the contact form I do not get the messages and I even added a email to have it forwarded to my yahoo account. If I go in my email account and enter the hosting email account I however do see the message on the server's webmail page and it gets forwarded to the email I set to be the forward email. I checked everything and I'm really confused as what needs to be done. I also submitted a ticket asking customer service they have yet to respond. To note I'm using a free hosting company as it's just a personal website that I don't need all the fancy stuff just the basic needed components to make it work. my website does show up and the pages work EXCEPT the contact form which is needed and important. I ran the script and this is the results
    PHP Version - OK
    mail configured incorrectly
    SQL configuration problem
    The last two  items I really don't understand what is the problem
    Im using Cpanel and here is some basic info on the  host server. Please help me. Thanks
    Hosting package
    Free Website
    Server Name
    customers
    cPanel Version
    11.44.0 (build 16)
    Theme
    x3
    Apache version
    2.4.9
    PHP version
    5.4.26
    MySQL version
    5.5.37-cll
    Architecture
    x86_64
    Operating system
    linux
    Shared IP Address
    Path to sendmail
    /usr/sbin/sendmail
    Path to Perl
    /usr/bin/perl
    Perl version
    5.10.1
    Kernel version
    3.14.3
    cPanel Pro
    1.0 (RC1) 

    What would be the fix or proper setup for the "SQL configuration problem?" I too am having form problems on a third party host, and after checking the PHP diagnostics, the "php version" reads ok, the "mail configuration" is ok, but the SQL configuration is not.
    I guess I just need to know what I need to communicate to the hosting administrator about the SQL so they will configure it properly.
    Thanks

  • Many contacts, 1 form. Possible?

    I have a set of links on a page, call it Contact.html, each
    link calling
    a different form:
    < a href="/janform.html">Click here to Email
    Jan></a>
    < a href="/frankform.html">Click here to Email
    Frank></a>
    < a href="/sueform.html">Click here to Email
    Sue></a>
    etc...
    Then I have an html form that calls a php script -
    formail.php.
    One of the variables that the script requires is "recipient",
    so I have
    a line in janform.html form that says:
    <input type="hidden" name="recipient" value="jan">
    and a line in frankform.html that says:
    <input type="hidden" name="recipient" value="frank">
    and a line in sueform.html that says:
    <input type="hidden" name="recipient" value="sue">
    All works great, but with a fair amount of redundancy.
    It would be preferable to have one email form, call it
    emailform.html,
    and have links in contact.html something like this:
    < a href="/emailform.html?recipient="jan"">Click here
    to Email Jan></a>
    < a href="/emailform.html?recipient="frank"">Click here
    to Email Frank></a>
    < a href="/emailform.html?recipient="sue"">Click here
    to Email Sue></a>
    and then in emailform.html something like this:
    <input type="hidden" name="recipient" value="variable from
    contact.html">
    So, the question is what does the link look like in
    contact.html, and
    what does the input field of the form look like?
    How do I tie the two together? I am thinking I need a script,
    but can
    not find one to do this, and creating one is beyond my
    skills, though modification may be possible.
    How do others handle this situation?
    Thanks,
    Harvey

    Take a look at Forms to Go
    (www.bebosoft.com/products/formstogo/). You can
    set it up so a field (say, Contact) can trigger the email to
    be sent to a
    specific email address depending on the value of that field.
    Check out their
    user's guide at
    http://www.bebosoft.com/products/formstogo/usersguide/en/.
    Go to EMAIL SETTINGS/EMAIL TO THE FORM OWNER and look about
    halfway down the
    page.
    MD
    eclipsme wrote:
    > I have a set of links on a page, call it Contact.html,
    each link
    > calling
    > a different form:
    >
    > < a href="/janform.html">Click here to Email
    Jan></a>
    > < a href="/frankform.html">Click here to Email
    Frank></a>
    > < a href="/sueform.html">Click here to Email
    Sue></a>
    >
    > etc...
    >
    > Then I have an html form that calls a php script -
    formail.php.
    >
    > One of the variables that the script requires is
    "recipient", so I
    > have
    > a line in janform.html form that says:
    >
    > <input type="hidden" name="recipient" value="jan">
    >
    > and a line in frankform.html that says:
    >
    > <input type="hidden" name="recipient"
    value="frank">
    >
    > and a line in sueform.html that says:
    >
    > <input type="hidden" name="recipient" value="sue">
    >
    > All works great, but with a fair amount of redundancy.
    >
    > It would be preferable to have one email form, call it
    emailform.html,
    > and have links in contact.html something like this:
    >
    > < a href="/emailform.html?recipient="jan"">Click
    here to Email
    > Jan></a> < a
    href="/emailform.html?recipient="frank"">Click here to
    > Email Frank></a> < a
    href="/emailform.html?recipient="sue"">Click
    > here to Email Sue></a>
    >
    > and then in emailform.html something like this:
    >
    > <input type="hidden" name="recipient" value="variable
    from
    > contact.html">
    >
    > So, the question is what does the link look like in
    contact.html, and
    > what does the input field of the form look like?
    >
    > How do I tie the two together? I am thinking I need a
    script, but can
    > not find one to do this, and creating one is beyond my
    skills, though
    > modification may be possible.
    >
    > How do others handle this situation?
    >
    > Thanks,
    > Harvey

  • Contact / email form problem

    I am adding a contact / forward email form to a website I am building and ran into a snag. I have the Adobe Classroom in a book for AS3, and in chapter 13 it gives me the code, along with a start file and completed file. The problem is, the completed file doesn't work. The code links up to a web address that has the PHP file that generates the email. Has anyone else had a problem with this? I have access to a server running PHP and uploaded it there and redirected the AS code in the example and still nothing. And yes, I have checked the book website for updates. Relevant code follows.
    Thanks,
    Jeff
    var variables:URLVariables = new URLVariables();
    var mailAddress:URLRequest = new URLRequest("http://www.turnkeycreations.com/clients/tgc/email.php");
    name_txt.tabIndex = 1;
    email_txt.tabIndex = 2;
    subject_txt.tabIndex = 3;
    note_txt.tabIndex = 4;
    print_btn.tabIndex = 5;
    send_btn.addEventListener(MouseEvent.CLICK, onSubmit);
    function onSubmit(e:Event):void {
        variables.sName = name_txt.text;
        variables.sEmail = email_txt.text;
        variables.sMessage =variables.sName + " has sent this note:" + "\n\n"+note_txt.text;
        variables.sSubject = subject_txt.text;
        mailAddress.data = variables;
        mailAddress.method = URLRequestMethod.POST;
        sendToURL(mailAddress);
        feedback_txt.text = "Your mail has been sent";
    PHP:
    <?php
    $sendTo = $_POST["sEmail"];
    $subject = $_POST["sSubject"];
    $headers = "From: " . $_POST["sName"] . "<" . $_POST["sEmail"] .">\r\n";
    $headers .= "Reply-To: " . $_POST["sEmail"] . "\r\n";
    $headers .= "Return-path: " . $_POST["sEmail"];
    $message = $_POST["sMessage"];
    mail($sendTo, $subject, $message, $headers);
    ?>

    I guess technically it does work, I sent it to another address to test it again. The problem is,
    the address I used first is (not real) [email protected]  .  It has a period before the first and last name. Could this be the problem? If so, how do I fix?

  • Consolidating a poor "Contact us" form from AS1 help needed.

    I've found that the contact form functionality is spread over two symbols a few layers, and a few clips.  I'll do my best to define what and where, as well as the AS code behinf it in a top down manner.
    Symbol: "p4_tblock2" (movie clip) with three objects below it.
        " Layer 11 : Frame 1"     (two frames)
         "Layer 12 : Frame 2 "    (two frames)
          "Message"  Movieclip    (one frame)
              Message on frame one contains the text boxes to be filled in as well as a couple of movie clip buttons which are in the second part of all this
              Layer 12 frame 2 holds the thank you note once the sequence is advanced when the "submit" (movieclip button) is selected.  The other movieclip button "clear" resets the form.
              Layer 11...I'm not sure as I can turn it on and off and not see anything happen.  Also, the two frame icons are different then the others below it (the icons actually IN the timeline.
    Message has this asssociated AS
    onClipEvent(data){
    // show thank you screen
    this.nextFrame();
    The other symbol. "message" Three items below it, and four layers
              "Frame"  (one frame)
              "rd1"  (one frame) movie clip as a button
              "rd1:  (one frame) movie clip as a button
    The two rd1 movie clips hold the AS for the send and clear movieclip buttons.
    At this point I'm not to concerned with the code as KGLAD has been very helpfull.  I just don't think this needs to be spread out so much.
    I've done my best to describe what is going on, but it makes my head spin just trying to follow it.
    The idea is to have the buttons animate when the mouse passes over them, receive user input from four text boxes, and then send or clear the form to start over.
    Thanks

    Sure - here it is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    </body>
    </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    </head>
    <body>
    <!-- Reminder: Add the link for the 'next page' (at the bottom) -->
    <!-- Reminder: Change 'YourEmail' to Your real email -->
    <?php
    $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
    $visitor = $_POST['visitor'];
    $visitormail = $_POST['visitormail'];
    $notes = $_POST['notes'];
    $attn = $_POST['attn'];
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    die ("Use back! ! ");
    $todayis = date("l, F j, Y, g:i a") ;
    $attn = $attn ;
    $subject = $attn;
    $notes = stripcslashes($notes);
    $message = " $todayis [EST] \n
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    $from = "From: $visitormail\r\n";
    mail("[email protected]", $subject, $message, $from);
    ?>
    <p align="center">
    Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />
    Attention: <?php echo $attn ?>
    <br />
    Message:<br />
    <?php $notesout = str_replace("\r", "<br/>", $notes);
    echo $notesout; ?>
    <br />
    <?php echo $ip ?>
    <br /><br />
    <a href="thankyou.html"> Next Page </a>
    </p>
    </body>
    </html>
    Thank you!

  • Obtaining more info from contact us form?

    We set up a form to collect user profile information using a generic contact form which collects a username and an image for their profile picture. Since we didn't use a custom crm field, there's no export a list of usernames and matching profile pictures. Instead we need to go into each contact one by one to view what photo they uploaded as their profile picture and create an excel file manually. Is there any easier way to obtain the information?

    Hi,
    Unfortunately I cannot see another way for existing records.  Perhaps removing the current contact form and updating it to include the fields you require for all future submissions. 
    Kind regards,
    -Sidney

Maybe you are looking for