Email feedback form in Portal

Hi guys, very simple question here for some of you i would imagine. I have just started to maintain our company intranet - which is built with Portal9iAS - and as such i am a bit clueless at the moment.
What i need is an email feedback form on the intranet that staff can fill in then submit, and the results can be emailed back to me and stored in the db. How can i achieve this in the simplest possible way?
I know a bit of Java, but don't know how to use a JSP page to achieve this.
Regards,
Paul

Create the table to hold your data.
Create a Portal Form component based on that table. Give priviledges to the users (maybe authenticated_users?).
Create a database trigger on that table, on insert, that uses the UTL_SMTP PL/SQL package to send the email.
Google/Metalink UTL_SMTP for code examples.

Similar Messages

  • Moved from 104.11 to 10.5.2 php email feedback forms don't work now

    Just moved from 10.4.11 to 10.5.2 with default Apache2 and PHP versions as provided by the 10.5 Server installer.
    We have a simple web site, static pages, integrated filemaker content, and a couple of php scripts.
    Our simple slideshow scripts work fine. Our feedback scripts do not.
    User fills in the form and hits send which is set to post the field content to the php script with in turn sends an email to the appropriate address and then calls a "thank you for your submission" page. Until this OS change the browser never does anything other than what is described above. With the OS change the browser now looks like it is trying to load the script page and then gives this error:
    "Safari can’t open the page “http://www.wetzelandson.com/feedback.php” because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later."
    The script runs some checks for empty fields, incomplete email address and verify that a mail server is on the domain for the users email address. The script works, diverting to error pages as needed, until the user puts in a complete email address at which point it stalls, shows that the browser is trying to load the php script and shows the message.

    Figured it out.
    I guess something about the new php in 10.5.2 does not like the verification of an mx server at the domain of the users email
    commented the following and script works fine now, it worked until I changed from 10.4.11 to 10.5.2.
    I guess that this command is no longer valid.
    function validateemail($email)
    list($userName, $mailDomain) = split("@", $email);
    return checkdnsrr($mailDomain, "MX");
    if (validateemail($email))
    */

  • Add a topic name to a feedback form

    Hello.
    I am using RH 10.
    In our help system, I would like to add a feedback link to each topic. When the user clicks the link a feedback from opens. This feedback form should have the name of the topic or the file name (either one) that the user clicked the feedback link on.
    The name can display in a field or be hidden, we just need the information included when the user mails the feedback form.
    I know how to create the form and add the feedback link to the master page.
    A discussion here
    http://forums.adobe.com/message/2238475#2238475
    indicates that the topic or file name could be captured and passed to the feedback form.
    I have seen the grainge article about creating a simple email feedback form ( http://www.grainge.org/pages/snippets/mailto.htm) and it is helpful, but not exactly what I need.
    Has anyone used RH to do this, and if so, how?
    Tbanks for your help.

    Hiya!
     Unfortunately it is only possible to add a signature to an email. You cannot add one to a text message. Sorry
    1). Please thank those who help you by clicking the beside the 'Reply' button.
    2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
    3). Remember to have fun! We are all in this together!
    4). Follow me on

  • Web Photo Gallery - Feedback form not emailing?

    I'm using CS2 PShop and have created a web photo gallery using the Centred Frame 2 style and have entered my email address etc correctly. The gallery displays fine and on my mac I can approve and add descriptions, save and email the saved data - it asks for a name and on clicking OK launches Entourage 2004l and pours the data into a new email message body correctly.
    The problem is I want someone in Italy to review the gallery and get his feedback. When he approves/adds descriptions/saves and clicks the 'email feedback' button, he IS prompted for a name, but on enetering name and clicking OK, nothing happens and his mail client is not launched. He is on a windows PC using IE 6. What is going wrong? Is this a browser issue.
    Help required asap.

    You may need to edit the html code.
    The code for mailing should be something like this (with your email address obviously!):
    <a href="mailto:[email protected]">Click to send an e-mail</a>

  • Urgent !!!  Feedback Form Development

    Dear all
    I was trying to develop the Feedback form. I'm attaching the Source code below. According to the experts ...everybody suggested that..instead of using Service providers for sending mail...everybody using KM Services for sending mails. we already installed KM and collaboration.
    Can anyone..pl help me..to achive this feedback development.
    Kindly send me the code if anyone developed same kind of form using KM Services for sending mail...
    or do correct me my code...what went wrong.
    package Com.pradeep.Feedback;
    import java.util.GregorianCalendar;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sapportals.htmlb.enum.ButtonDesign;
    import com.sapportals.htmlb.enum.DataType;
    import com.sapportals.htmlb.enum.GroupDesign;
    import com.sapportals.htmlb.enum.TextViewDesign;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.htmlb.*;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    public class feedback  extends PageProcessorComponent {
         public DynPage getPage() {
              return new MyDynPage();
         public class MyDynPage extends DynPage {
              private final static int INITIAL_STATE = 0;
              private final static int SENTMAIL_STATE = 1;
              private final static int ERROR_STATE = 2;
              private final static int NO_FEEDBACK = 3;
              private int state = INITIAL_STATE;
              private String email_from;
              private String txtdescr;
              private String error_messg;
    Things to initialice once per session.
              public void doInitialization() throws PageException {
                   state = INITIAL_STATE;
    Will be called if forms with data was send.
              public void doProcessAfterInput() throws PageException {
                   InputField myInputField = (InputField) getComponentByName("EMAIL_ADDR");
                   HtmlEdit txtdescr = (HtmlEdit)getComponentByName("Edit_Text");
                   if (myInputField != null) {
                        this.email_from = myInputField.getValueAsDataType().toString();
                   if (txtdescr != null) {
                        this.txtdescr = txtdescr.getText();
    Will always be called before output. So this is the method in which
    the components will be placed and set.
                        public void doProcessBeforeOutput() throws PageException {
                             System.out.println("doProcessBeforeOutput");
                             Button myButton;
                             Form myForm = getForm();
                             Group myGroup = new Group();
                             myGroup.setWidth("370");
                             myGroup.setTitle("Suggestions or Feedback");
                             myGroup.setDesign(GroupDesign.SAPCOLOR);
                             myForm.addComponent(myGroup);
                             GridLayout gl = new GridLayout();
                             myGroup.addComponent(gl);
                             switch (state) {
                                  case INITIAL_STATE:
                                       GridLayout g2 = new GridLayout();
                                       g2.setCellSpacing(4);
                                       TextView txtdescr = new TextView("We want to make your opinion count so please provide any relevant suggestions or feedback you may have.  We will review all feedback in an effort to provide you with better services and improve the overall portal. Enter your comments below and click send.");
                                       txtdescr.setWrapping(true);
                                       txtdescr.setDesign(TextViewDesign.HEADER3);
                                       g2.addComponent(1, 1, txtdescr);
                                       TextView txtthank = new TextView("Thank you for your feedback!");
                                       txtthank.setDesign(TextViewDesign.HEADER3);
                                       g2.addComponent(2, 1, txtthank);
                                       gl.addComponent(1,1,g2);
                                       GridLayout g3 = new GridLayout();
                                       TextView txtemail = new TextView("Your email address (optional): ");
                                       txtemail.setDesign(TextViewDesign.HEADER3);
                                       g3.addComponent(6, 1, txtemail);
                                       InputField email_addr = new InputField("EMAIL_ADDR");
                                       email_addr.setType(DataType.STRING);
                                       email_addr.setSize(40);
                                       email_addr.setMaxlength(50);
                                       g3.addComponent(6, 2, email_addr);
                                       gl.addComponent(2,1,g3);
                                       HtmlEdit he = new HtmlEdit("Edit_Text");
                                       he.setHeight("300");
                                       he.setWidth("405");
                                       he.setDoPreview(false);
                                       he.setDoPrint(false);
                                       he.setDoCutCopyPaste(true);
                                       he.setDoList(true);
                                       he.setDoAlign(true);
                                       he.setDoInOutdent(true);
                                       he.setDoImage(false);
                                       he.setDoLink(true);
                                       he.setDoLinkKM(false);
                                       gl.addComponent(5, 1, he);
                                       myButton = new Button("submit", "Send");
                                       myButton.setOnClick("onSubmit");
                                       myButton.setWidth("100px");
                                       myButton.setDesign(ButtonDesign.EMPHASIZED );
                                       gl.addComponent(7, 1, myButton);
                                       break;
                                  case SENTMAIL_STATE:
                                       TextView label = new TextView("Thank you for your feedback.");
                                       gl.addComponent(1, 1, label);
                                       break;
                                  case NO_FEEDBACK:
                                    TextView lblnotext = new TextView("Please enter some feedback.");
                                    lblnotext.setDesign(TextViewDesign.HEADER3);
                                    gl.addComponent(1, 1, lblnotext);
                                    myButton = new Button("submit", "Back");
                                    myButton.setOnClick("onBack");
                                    myButton.setWidth("100px");
                                    myButton.setDesign(ButtonDesign.EMPHASIZED );
                                    gl.addComponent(2, 1, myButton);
                                    state = INITIAL_STATE;
                                    break;
                                case ERROR_STATE:
                                   TextView errortext = new TextView(error_messg);
                                   errortext.setDesign(TextViewDesign.HEADER3);
                                   errortext.setWrapping(true);
                                   gl.addComponent(1, 1, errortext);
                                   myButton = new Button("submit", "Try Again");
                                   myButton.setOnClick("onBack");
                                   myButton.setWidth("100px");
                                   myButton.setDesign(ButtonDesign.EMPHASIZED );
                                   gl.setCellSpacing(4);
                                   gl.addComponent(2, 1, myButton);
                                   state = INITIAL_STATE;                                 
              public void onSubmit(Event event) throws PageException {
                     if (txtdescr.equals("")) {
                           state = NO_FEEDBACK;
                     else {
                        send_mail();
                        if ( state != ERROR_STATE )
                        { state = SENTMAIL_STATE; }
              public void onBack(Event event) throws PageException {
              public void send_mail ()
              try{
    //               Set the host smtp address
                 Properties props = new Properties();
                      //put the smtp server here
                 props.put("123.12.12.25", "unilever.com");
    //             create some properties and get the default Session
                 Session session = Session.getDefaultInstance(props,null);
    //             create a message
                    Message msg = new MimeMessage(session);
    //                    set the from and to address
                   InternetAddress addressFrom;
                    if (email_from.equals("") )
                        addressFrom = new InternetAddress("anonymous");
                    else
                        addressFrom = new InternetAddress(email_from);
                     msg.setFrom(addressFrom);
                     InternetAddress addressTo = new InternetAddress("[email protected]");
                     msg.setRecipient(Message.RecipientType.TO,addressTo);
                     msg.setSubject("Portal Feedback");
                     msg.setContent(txtdescr, "text/html");
                     msg.setSentDate(new GregorianCalendar().getTime());
                   Transport.send(msg);
               } catch (Exception E){
                   state = ERROR_STATE;
                   error_messg = "Error sending mail:";
                   error_messg = error_messg.concat(E.getMessage());
    Kindly pl help me
    thx
    pradeep

    Hi Pradeep,
    Check out the following weblog. It explains sending mail in portal using dynpage.
    <b>How to perfom Mailing in portal using Dynpage.>
    REgards
    Rajeev.
    Do award points for helpful answers in SDN.

  • Feedback form development

    Dear all
    I Developed Feedback using Java script with some validations...if the user submits it will go to the specified email id..which i was mentioned in Form action type..
    My question is...There are nearly 7000 customers will login into portal everyday...I want know...Whether i can retrive the user details(Portal) into Feedback form. when ever he submits ..automatically that message has to go to the respective Branches..
    Example:
    CustA, CustB, CustC.. are belongs to BRANCH1
    CustD, CustE, CustF.. are belongs to BRANCH2.
    When ever customer logs into portal...when he submits the feedback about any issue or suggestion...automatically portal has to find ..this particular user belongs to Branch1.
    Can anybody help me how do i build this logic...
    Ur valuble inputs are appreciated with points
    rgds
    pradeep

    Hi Pradeep,
    first, you are using a form with action type mailto?! This is not the most clean solution, check http://www.netmechanic.com/news/vol3/form_no4.htm for example for some comments on this.
    Anyhow, even if using this technique, you could render this script at server side with the mailto target dependent on the actual user. The user you get from the request, and how the mapping user <-> branch is done should be within your knowledge... So I cannot realise serious problems.
    A more clean solution would be to implement the mailing funtionality on server side, so just grabbing the input from the form and creating a mail using JavaMail or some other mailing functionality from within the portal (all depending on JavaMail). Be aware that mails on server side should be transmitted asychronously for not getting a lag in the request-reponse cycle (and other reasons).
    With this, it's early enough to check where the mail should be destinated when the filled in form reachs the server.
    Hope it helps
    Detlev

  • Help with Dreamweaver CS4 feedback form

    I am trying to get my first feedback form working properly.
    There are two problems:
    1. I can't click in the boxes to enter info. The only way to access them is to tab through.
    2. When I submit, it brings up a second blank feedback page in Safari. In Firefox, it just loops back to the empty feedback page.
    Any help would be appreciated as I running out of hair to pull out.
    Here is the php code:
    <?php /*
    // ------------- CONFIGURABLE SECTION ------------------------
    $mailto = '[email protected]' ;
    $subject = "Feedback Form" ;
    $formurl = "http://www.printit7.com/feedback.html" ;
    $thankyouurl = "http://www.printit7.com/thankyou.html" ;
    $errorurl = "http://www.printit7.com/error.html" ;
    $email_is_required = 1;
    $name_is_required = 1;
    $comments_is_required = 0;
    $uself = 0;
    $forcelf = 0;
    $use_envsender = 0;
    $use_sendmailfrom = 0;
    $smtp_server_win = '' ;
    $use_webmaster_email_for_from = 0;
    $use_utf8 = 1;
    $my_recaptcha_private_key = '' ;
    // -------------------- END OF CONFIGURABLE SECTION ---------------
    define( 'MAX_LINE_LENGTH', 998 );
    $headersep = $uself ? "\n" : "\r\n" ;
    $content_nl = $forcelf ? "\n" : (defined('PHP_EOL') ? PHP_EOL : "\n") ;
    $content_type = $use_utf8 ? 'Content-Type: text/plain; charset="utf-8"' : 'Content-Type: text/plain; charset="iso-8859-1"' ;
    if ($use_sendmailfrom) {
              ini_set( 'sendmail_from', $mailto );
    if (strlen($smtp_server_win)) {
              ini_set( 'SMTP', $smtp_server_win );
    $envsender = "-f$mailto" ;
    $fullname = isset($_POST['fullname']) ? $_POST['fullname'] : $_POST['name'] ;
    $email = $_POST['email'] ;
    $comments = $_POST['comments'] ;
    $http_referrer = getenv( "HTTP_REFERER" );
    if (!isset($_POST['email'])) {
              header( "Location: $formurl" );
              exit ;
    if (($email_is_required && (empty($email) || !preg_match('/@/', $email))) || ($name_is_required && empty($fullname)) || ($comments_is_required && empty($comments))) {
              header( "Location: $errorurl" );
              exit ;
    if ( preg_match( "/[\r\n]/", $fullname ) || preg_match( "/[\r\n]/", $email ) ) {
              header( "Location: $errorurl" );
              exit ;
    if (strlen( $my_recaptcha_private_key )) {
              $resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] );
              if (!$resp->is_valid) {
                        header( "Location: $errorurl" );
                        exit ;
    if (empty($email)) {
              $email = $mailto ;
    $fromemail = $use_webmaster_email_for_from ? $mailto : $email ;
    if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) {
              $comments = stripslashes( $comments );
    $messageproper =
              "This message was sent from:" . $content_nl .
              "$http_referrer" . $content_nl .
              "------------------------------------------------------------" . $content_nl .
              "Name of sender: $fullname" . $content_nl .
              "Email of sender: $email" . $content_nl .
              "------------------------- COMMENTS -------------------------" . $content_nl . $content_nl .
              wordwrap( $comments, MAX_LINE_LENGTH, $content_nl, true ) . $content_nl . $content_nl .
              "------------------------------------------------------------" . $content_nl ;
    $headers =
              "From: \"$fullname\" <$fromemail>" . $headersep . "Reply-To: \"$fullname\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.16.8" .
              $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ;
    if ($use_envsender) {
              mail($mailto, $subject, $messageproper, $headers, $envsender );
    else {
              mail($mailto, $subject, $messageproper, $headers );
    header( "Location: $thankyouurl" );
    exit ;
    ?>
    Here is the form page code:
    <!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" />
    <title>Print It! Quote Form</title>
    <link href="site_styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    <style type="text/css">
    <!--
    p {
              font-size: 135%;
    -->
    </style>
    </head>
    <body onload="MM_preloadImages('images/buttons/home_down.jpg','images/buttons/home_over.jpg','i mages/buttons/about_down.jpg','images/buttons/about_over.jpg','images/buttons/news_down.jp g','images/buttons/news_over.jpg','images/buttons/products_down.jpg','images/buttons/produ cts_over.jpg','images/buttons/contact_down.jpg','images/buttons/contact_over.jpg')">
    <div id="header">
      <div id="logo">
        <div align="center"><img src="images/header.jpg" alt="Welcome to Print It!" width="1024" height="231" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="542,125,976,205" href="mailto:[email protected]" alt="Email us!" />
          </map>
        </div>
      </div>
    </div>
    <div id="navigation">
      <div align="center">
        <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="center">
            <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/buttons/home_down.jpg',1)" onmouseover="MM_nbGroup('over','home','images/buttons/home_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/home_up.jpg" alt="Home" name="home" width="144" height="31" border="0" id="home" onload="" /></a></td>
            <td><a href="about.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/buttons/about_down.jpg',1)" onmouseover="MM_nbGroup('over','about','images/buttons/about_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/about_up.jpg" alt="About Print It!" name="about" width="144" height="31" border="0" id="about" onload="" /></a></td>
            <td><a href="news.html" target="_top" onclick="MM_nbGroup('down','group1','news','images/buttons/news_down.jpg',1)" onmouseover="MM_nbGroup('over','news','images/buttons/news_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/news_up.jpg" alt="News" name="news" width="144" height="31" border="0" id="news" onload="" /></a></td>
            <td><a href="products.html" target="_top" onclick="MM_nbGroup('down','group1','products','images/buttons/products_down.jpg',1)" onmouseover="MM_nbGroup('over','products','images/buttons/products_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/products_up.jpg" alt="Products / Services" name="products" width="144" height="31" border="0" id="products" onload="" /></a></td>
            <td><a href="feedback.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/buttons/contact_down.jpg',1)" onmouseover="MM_nbGroup('over','contact','images/buttons/contact_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/contact_up.jpg" alt="Contact Print It!" name="contact" width="144" height="31" border="0" id="contact" onload="" /></a></td>
          </tr>
        </table>
      </div>
    </div>
    <div id="body-text">
      <h1>Contact us<em></em></h1>
    <p align="center">Call us at the phone number above, email us by clicking on our <br />
      email address above,
      or use this  form to request a quote. </p>
    </div>
    <div id="body-text">
      <form action="feedback.php" method="post" enctype="text/plain" name="form1" target="_blank" class="form_text" id="form1">
        <label>
          <div align="left" class="form_text">
            <p>Name
            <br />
            <input name="name" type="text" id="name" maxlength="50" />
            </p>
            <p>      Company Name <br />
            <input name="company" type="text" id="company" maxlength="50" />
            </p>
            <p>
              <label>Phone Number
                <br />
                <input name="phone" type="text" id="phone" maxlength="50" />
              </label>
            </p>
            <p>
            <label>Email Address
              <br />
              <input name="email" type="text" id="email" maxlength="50" />
            </label>
            </p>
            <p>
            <label>Preferred Response<br />
              <select name="preferred_contact" id="preferred_contact">
                <option>By Email</option>
                <option>By Phone</option>
              </select>
              <br />
              <br />
            </label>
            <strong>PROJECT INFORMATION</strong></p>
            <p>
      <label>Project Name
        <br />
        <input name="project_name" type="text" id="project_name" maxlength="50" />
      </label>
            </p>
            <p>
              <label>Quantities to Quote
                <br />
                <input type="text" name="quantites" id="quantites" />
              </label>
            </p>
            <p>
              <label>Finished Size
                <br />
                <input type="text" name="size" id="size" />
              </label>
            </p>
            <p>
              <label>
                <input type="radio" name="sides" value="one side" id="sides_0" />
              1 Side<br />
              </label>
              <br />
              <label>
                <input type="radio" name="sides" value="two sides" id="sides_1" />
              2 Sides</label>
            </p>
            <p>
              <label>Colors - Side 1
                <br />
                <select name="colors_side1" id="colors_side1">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>         
            </p>
            <p>
              <label>Colors - Side 2<br />
                <select name="colors_side2" id="colors_side2">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>
            </p>
            <p class="form_text">
              <label>Paper Weight
                <br />
                <input name="paper_weight" type="text" id="paper_weight" maxlength="50" />
                <br />
                <br />
                Paper Color
                <br />
                <input name="paper_color" type="text" id="paper_color" maxlength="50" />
                <br />
    <br />
                Paper Type (gloss, plain, carbonless, etc.)
                <br />
                <input name="paper_type" type="text" id="paper_type" maxlength="50" />
                <br />
    <br />
                Bindery Information (folding, perfing, etc.)
                <br />
                <textarea name="bindery" cols="100" rows="5" class="form_text" id="bindery"></textarea>
                <br />
                <br />
                Additional Information <br />
                <textarea name="additional_info" id="additional_info" cols="100" rows="10"></textarea>
                <br />
                <br />
                <input type="submit" name="Submit" id="Submit" value="Send Feedback" />
                <br />
                <br />
              </label>
              <br />
            </p>
          </div>
        </label>
      </form>
    </div>
    </body>
    </html>

    Here is the current code from the feedback page:
    <!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" />
    <title>Print It! Quote Form</title>
    <link href="site_styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    <style type="text/css">
    <!--
    p {
              font-size: 135%;
    -->
    </style>
    </head>
    <body onload="MM_preloadImages('images/buttons/home_down.jpg','images/buttons/home_over.jpg','i mages/buttons/about_down.jpg','images/buttons/about_over.jpg','images/buttons/news_down.jp g','images/buttons/news_over.jpg','images/buttons/products_down.jpg','images/buttons/produ cts_over.jpg','images/buttons/contact_down.jpg','images/buttons/contact_over.jpg')">
    <div id="header">
      <div id="logo">
        <div align="center"><img src="images/header.jpg" alt="Welcome to Print It!" width="1024" height="231" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="542,125,976,205" href="mailto:[email protected]" alt="Email us!" />
          </map>
        </div>
      </div>
    </div>
    <div id="navigation">
      <div align="center">
        <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="center">
            <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','images/buttons/home_down.jpg',1)" onmouseover="MM_nbGroup('over','home','images/buttons/home_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/home_up.jpg" alt="Home" name="home" width="144" height="31" border="0" id="home" onload="" /></a></td>
            <td><a href="about.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/buttons/about_down.jpg',1)" onmouseover="MM_nbGroup('over','about','images/buttons/about_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/about_up.jpg" alt="About Print It!" name="about" width="144" height="31" border="0" id="about" onload="" /></a></td>
            <td><a href="news.html" target="_top" onclick="MM_nbGroup('down','group1','news','images/buttons/news_down.jpg',1)" onmouseover="MM_nbGroup('over','news','images/buttons/news_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/news_up.jpg" alt="News" name="news" width="144" height="31" border="0" id="news" onload="" /></a></td>
            <td><a href="products.html" target="_top" onclick="MM_nbGroup('down','group1','products','images/buttons/products_down.jpg',1)" onmouseover="MM_nbGroup('over','products','images/buttons/products_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/products_up.jpg" alt="Products / Services" name="products" width="144" height="31" border="0" id="products" onload="" /></a></td>
            <td><a href="feedback.html" target="_top" onclick="MM_nbGroup('down','group1','contact','images/buttons/contact_down.jpg',1)" onmouseover="MM_nbGroup('over','contact','images/buttons/contact_over.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="images/buttons/contact_up.jpg" alt="Contact Print It!" name="contact" width="144" height="31" border="0" id="contact" onload="" /></a></td>
          </tr>
        </table>
      </div>
    </div>
    <div id="body-text">
      <h1>Contact us<em></em></h1>
    <p align="center">Call us at the phone number above, email us by clicking on our <br />
      email address above,
      or use this  form to request a quote. </p>
    </div>
    <div id="body-text">
      <form action="feedback.php" method="post" enctype="text/plain" name="form1" target="_blank" class="form_text" id="form1">
          <div align="left" class="form_text">
            <p>
            <label>Name <br />
            <input name="name" type="text" id="name" maxlength="50" />
            </label>
            </p>
            <p class="form_text">
              <label>Company Name <br />
            <input name="company" type="text" id="company" maxlength="50" />
            </label>
            </p>
            <p class="form_text">
              <label>Phone Number
                <br />
                <input name="phone" type="text" id="phone" maxlength="50" />
              </label>
            </p>
            <p class="form_text">
              <label>Email Address
              <br />
              <input name="email" type="text" id="email" maxlength="50" />
            </label>
            </p>
        <p class="form_text">
              <label>Preferred Response<br />
              <select name="preferred_contact" id="preferred_contact">
                <option>By Email</option>
                <option>By Phone</option>
              </select>
              <br />
              <br />
            </label>
            <strong>PROJECT INFORMATION</strong></p>
            <p class="form_text">
              <label>Project Name
        <br />
        <input name="project_name" type="text" id="project_name" maxlength="50" />
      </label>
            </p>
            <p class="form_text">
              <label>
             Quantities to Quote
                <br />
                <input type="text" name="quantites" id="quantites" />
              </label>
            </p>
            <p class="form_text">
              <label>Finished Size
                <br />
                <input type="text" name="size" id="size" />
              </label>
            </p>
            <p>
              <label>
                <input type="radio" name="sides" value="one side" id="sides_0" />
              1 Side<br />
              </label>
              <br />
              <label>
                <input type="radio" name="sides" value="two sides" id="sides_1" />
              2 Sides</label>
            </p>
            <p class="form_text">
              <label>Colors - Side 1
                <br />
                <select name="colors_side1" id="colors_side1">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>         
            </p>
            <p class="form_text">
              <label>Colors - Side 2<br />
                <select name="colors_side2" id="colors_side2">
                  <option value="Black">Black</option>
                  <option value="Spot Color">Spot Color</option>
                  <option value="Black + Spot Color">Black + Spot Color</option>
                  <option value="Full Color">Full Color</option>
                  <option value="Other">Other - Describe Below</option>
                </select>
              </label>
            </p>
            <p class="form_text">
              <label>Paper Weight
                <br />
                <input name="paper_weight" type="text" id="paper_weight" maxlength="50" />
                </label><br />
               <p class="form_text">
              <label>Paper Color
                <br />
                <input name="paper_color" type="text" id="paper_color" maxlength="50" />
                </label>
                </p>
    <p class="form_text">
              <label>Paper Type (gloss, plain, carbonless, etc.)
                <br />
                <input name="paper_type" type="text" id="paper_type" maxlength="50" />
                </label>
                </p>
                <p class="form_text">
              <label>Bindery Information (folding, perfing, etc.)
                <br />
                <textarea name="bindery" cols="100" rows="5" class="form_text" id="bindery"></textarea>
                </label>
                </p>
                <p class="form_text">
              <label>Additional Information <br />
                <textarea name="additional_info" id="additional_info" cols="100" rows="10"></textarea>
                </label>
                </p>
                <br />
                <input type="submit" name="Submit" id="Submit" value="Send Feedback" />
                <br />
                <br />
              </label>
              <br />
            </p>
          </div>
      </form>
    </div>
    </body>
    </html>

  • Nested Tables, Forms and Portal

    I am trying to implement a form in Portal that accesses a nested table. I can access normal tables but not my nested table. The nested table within the master table are object tables.
    When trying to access from the designer page I get an error indicating that table does not exist even though it was displayed in the pick list.
    Has anyone had success with this and can it be done.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chetan.kashyap ([email protected]):
    Actually nested tables are not supported by portal till now.<HR></BLOCKQUOTE>
    Chetan, can you be a bit more specific. What do you mea by 'till now'. Does this mean the next release can do it, or the current release shipped with Oracle 9i Application Server 1.0.2.0.0 for linux that I received.

  • Feedback form script in RH8

    My form (see below) triggers a PHP script (see below) which is supposed to send the form data to my email address. It works perfectly in a regular web page, but when I've integrated into my WebHelp project the form fails to send anything and show a series of PHP errors (see below). I'm no PHP expert so I'd be grateful if anyone could advise me or suggest an alternative method of producing a Feedback Form in a WebHelp page.
    FORM:
    <form action="sendmail.php" method="post" name="Feedback" id="Feedback">
      <p><strong style="font-weight: bold;">Name</strong>:<br />
        <input name="name" type="text" id="Name" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Email</strong>:<br />
        <input name="email" type="text" id="Email" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Phone</strong>:<br />
        <input name="phone" type="text" id="Phone" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Firm</strong>:<br />
        <input name="firm" type="text" id="Firm" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Comments</strong>:<br />
        <textarea name="message" cols="60" rows="5"></textarea>
      </p>
      <p>
        <input name="Clear" type="reset" class="button" value="Clear" />
        <input
      name="Send" type="submit" class="button" id="Send" value="Send" />
      </p>
    </form>
    SCRIPT:
    <?
    $name = $_REQUEST['name'] ;
    $email = $_REQUEST['email'] ;
    $phone = $_REQUEST['phone'] ;
    $firm = $_REQUEST['firm'] ;
    $message = $_REQUEST['message'] ;
    $http_referrer = getenv( "HTTP_REFERER" );
    $messagelayout =
    "This message was sent from:\n" .
    "$http_referrer\n" .
    "\n" .
    "\n" .
    "SENDER------------------------------------------------------\n\n" .
    "Name: $name\n" .
    "Email: $email\n" .
    "Phone: $phone\n" .
    "Firm: $firm\n" .
    "\n" .
    "MESSAGE-----------------------------------------------------\n\n" .
    $message .
    "\n\n------------------------------------------------------------\n" ;
    if (!isset($_REQUEST['email'])) {
    header( "Location: feedback.htm" ) ;
    elseif (empty($name) || empty($email) || empty($phone) || empty($firm) ||empty($message)) {
    header ( "Location: error.htm" ) ;
    else {
    mail( [email protected], "Documentation Feedback", $messagelayout, "From: $name <$email>" ) ;
    header( "Location: thanks.htm" ) ;
    ?>
    ERRORS:
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 2
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 3
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 4
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 5
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 6
    Warning: Cannot add header information - headers already sent by (output started at C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php:2) in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 26

    Hi Guys, just got round to looking at this again.
    The form now sends the email, but my "thank you" page isn't displayed. Also, if the required fields are not completed, my "error" page isn't displayed either.
    I'm testing this form after it's been published to our web server, which is on the same server as our intranet and the forms on the intranet work fine using the same script. I'm convinced that RoboHelp is doing something weird with the script.
    Any further help would be much appreciated.
    Thanks
    Jonathan

  • Feedback Form Processor

    I'm surprised how much time I have spent on this. I should have just posted the question here first.
    Anyway, I want to create a feedback form at my website using Dreamweaver. What is the best method?
    I say method, because I know there a couple of steps. I'm 99% sure I want to use PHP and I certainly want to have some sort of CAPTCHA. However, I have no idea what PHP processor is best or which one works best with Dreamweaver.
    So what is the overall best method to add forms to your website using Dreamweaver?
    Thanks in advance.

    The solution that I have so far isn't ideal, but I thought I would at least share it with everyone until a better solution comes along...
    First, I purchased Form Captcha from Hotdreamweaver.com for $29.99...
    http://www.hotdreamweaver.com/form-captcha
    I like it because it can be installed as a plugin for Dreamweaver so it's easy to access anytime I build a form. I was disappointed that it didn't come with some sort of PHP script to process the form. It also doesn't have some features that other CAPTCHA scripts offer.
    I could purchase their Form to Mail script for another $29.99, but without being able to test it, I'm not sure if it would do what I need. $29.99 for the script is a bit high in my opinion too, especially since I already dropped $29.99 on the Form Captcha script.
    So in order to process my form, I did find a simple free script that works and it's easy to configure. Unfortunately, it doesn't have some of the features that I'm trying to find...
    http://www.dreamweaverclub.com/dreamweaver-php-form.php
    <?php
    //--------------------------Set these paramaters--------------------------
    // Subject of email sent to you.
    $subject = 'INSERT YOUR SUBJECT HERE';
    // Your email address. This is where the form information will be sent.
    $emailadd = 'INSERT YOUR EMAIL ADDRESS HERE';
    // Where to redirect after form is processed.
    $url = 'INSERT LOCATION OF CONFIRMATION PAGE';
    // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    $req = '0';
    // --------------------------Do not edit below this line--------------------------
    $text = "Results from form:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 20)
    {echo "Name of form element $key cannot be longer than 20 characters";die;}
    $j = 20 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

  • Feedback form Problem

    Hello Adobe Communities, this is my first time here and I probably will be back here again.
    How do I make my Feedback Form (coding shown below) send an email when the user clicks 'Submit' to '[email protected]'
    Thanks for your help. On a side note if the user clicks 'submit' too many times can you make it so it won't send that email address notifications anymore.
    Note that: I'm using Adobe Dreamweaver CS3
      <p class="style8">Feedback Form</p>
        <form id="form1" name="form1" method="post" action="">
          <label><strong>Suggest Feedback:</strong><br />
          <br />
          <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
          </label>
          <p><strong>Rate this site honestly:</strong><br />
    </p>
          <p>
            <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
    Great</label>
            <br />
            <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
    Good</label>
            <br />
            <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
    Average</label>
            <br />
            <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
    Bad</label>
            <br />
            <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_4" />
    Horrible</label>
            <br />
          </p>
        </form>
        <form id="form2" name="form2" method="post" action="">
          <label>
          <input type="submit" name="Submit" id="Submit" value="Submit" />
          </label>
        </form>
        <h1> </h1>
        <p></p>

    Ok I'm using your code at the moment and I'm having some difficulty - which is probably my own fault as I did not supply you with the whole code initially. Here is the 'complete' code with your coding in bold font, I placed your code slab-bang where my previous feedback form was. I haven't tested this out due to not setting up my webserver at the moment. But anyway here is my problem, for some reason everything doesn't look right. Thanks.
    View image: Error
    <!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" />
    <title>Untitled Document</title>
    <link href="website formatting.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .thrColFixHdr #sidebar1 { width: 180px; }
    .thrColFixHdr #sidebar2 { width: 190px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
    .thrColFixHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <style type="text/css">
    <!--
    .style4 {color: #0000FF}
    .style6 {
      color: #000000;
      font-weight: bold;
    .style7 {color: #FFFFFF}
    a:link {
    a:link {
      color: #FF0000;
    #class5 a:link {
      color: #FFFFFF;
    a:link {
      color: #000099;
      text-decoration: none;
    body {
      background-color: #FFFFFF;
    .style8 {
      font-size: xx-large;
      font-weight: bold;
    -->
    </style>
    </head>
    <body class="thrColFixHdr">
    <div id="container">
      <div id="header">
        <h1><img src="Images/expertpcguides current logo.png" alt="Expertpcguides.com" width="557" height="95" /></h1>
      <!-- end #header --></div>
      <div id="sidebar1">
      <h3>Links:</h3>
        <p> Personalizing your PC (6 pages)</p>
        <p>Creating your own website</p>
        <p>Information about Audio Files</p>
        <p>Information about Video Files</p>
        <p><a href="the best pc browser.html">Which internet browser is best?</a></p>
        <p><a href="Adware removal.html">PC Adware Info + Removal</a></p>
        <p><a href="Virus Removal.html">PC Virus info + Removal</a></p>
        <p><a href="recommended Computer Software page 2.html">Recommended computer software</a></p>
        <p><a href="Top 10 Games.html">Best Free Games </a></p>
        <p><a href="Prank your friends.html">Prank your friends!</a></p>
        <p><a href="how to speed up your computer.html">Speeding up your computer</a></p>
        <p><a href="how to speed up your internet speeds.html">Increasing your internet speeds</a></p>
        <p><a href="What to Avoid.html">What to avoid while using the internet</a></p>
        <p>Recommended PC equipment</p>
        <p> </p>
        <p><strong><em>If you have any issues with your PC click the link below:</em></strong></p>
        <p class="style4">Help Me! I have a problem! </p>
      <!-- end #sidebar1 --></div>
    <div id="sidebar2">
        <h3>Latest Updates:</h3>
        <p>12-07-14: Foundations for the website made.</p>
      <!-- end #sidebar2 --></div>
    <?php
    if (isset($_POST['Submit'])) {
    // get feeback
    $textarea = stripslashes(trim($_POST['textarea']));
    // get ratings
    $rating = trim($_POST['RadioGroup1']);
    // get email address
    $email = trim($_POST['email']);
    // build the message
    $to = "[email protected]";
    $subject   = "Comments from website";
    $headers  = "From: $email\r\n";
    $headers .= "Reply-To: $email\r\n";
    $message = "Suggested Feedback: $textarea\n\n";
    $message .= "Rating: $rating\n\n";
    $message .= "Email: $email\n\n";
    mail($to, $subject, $message, $headers);
    $sent = "Mail was sent successfully";
    ?>
    <!DOCTYPE HTML>
    <html>
    <meta charset="UTF-8">
    <title>Website Form</title>
    <body>
    <?phpif(isset($sent)) {
        echo "<h3>$sent</h3>";
        ?>
    <form id="form1" name="form1" method="post" action="feedback.php">
    <label><strong>Suggest Feedback:</strong><br />
    <br />
    <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
    </label>
    <p><strong>Rate this site honestly:</strong><br /></p>
    <p>
    <label>
    <input type="radio" name="RadioGroup1" value="Great" id="RadioGroup1_0" />
    Great</label>
    <br />
    <label>
    <input type="radio" name="RadioGroup1" value="Good" id="RadioGroup1_1" />
    Good</label>
    <br />
    <label>
    <input type="radio" name="RadioGroup1" value="Average" id="RadioGroup1_2" />
    Average</label>
    <br />
    <label>
    <input type="radio" name="RadioGroup1" value="Bad" id="RadioGroup1_3" />
    Bad</label>
    <br />
    <label>
    <input type="radio" name="RadioGroup1" value="Horrible" id="RadioGroup1_4" />
    Horrible</label>
    <br />
    <br />
    <label>
    Email Address<br />
    <input type="text" name="email"  id="email" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="Submit" id="Submit" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html></label>
    </p>
    </form>
    </body>
    </html>
      <!-- end #mainContent --></div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <div id="class5">
          <p align="center"><span class="style7"><a href="website moderators.html">List of Website Moderators</a></span></p>
        </div>
        <p align="center"><span class="style6 style7"> © 2014 Expertpcguides.com</span>
          <!-- end #footer -->
        </p>
      </div>
    <!-- end #container --></div>
    </body>
    </html>

  • Feedback form - Safari

    Hi,
    Having trouble with the CSS of my feedback form. It looks OK
    in all the browsers except Safari.
    My code is not perfect (at all), any feedback or assistance
    would be greatly appreciated.
    The address is www.ambientdesign.com.au
    Thanks

    Why do you have this...
    > <INPUT TYPE="TEXT" NAME="firstname" SIZE="30"
    MAXLENGTH="30"> <span class="formp">First Name*
    > </span><BR>
    and for your submit button you do it right... well except you
    don't need
    a label for the submit button...
    > <label for="Submit"></label><input
    type="submit" name="Submit" value="Submit" id="Submit" />
    Also you have a lot of p tags going on inside the form. Try
    something
    like this instead...
    <form id="myform" method="post"
    action="
    http://mailgate.server-mail.com/cgi-bin/mailgate">
    <p>
    <input name="recipient" type="hidden" class="no_border"
    value="[email protected]">
    <input name="redirect" type="hidden" class="no_border"
    value="
    http://www.ambientdesign.com.au/thanks.html">
    <input name="required" type="hidden" class="no_border"
    value="emailaddress">
    <input name="subject" type="hidden" class="no_border"
    value="Enquiry
    from Contact Form">
    <label for="FirstName">First
    Name</label><br>
    <input name="FirstName" type="text" id="FirstName"
    class="wideinput"
    value="" maxlength="30" alt="Write your first name">
    <br>
    <label for="LastName">Last Name</label><br>
    <input name="LastName" type="text" id="LastName"
    class="wideinput"
    value="" maxlength="30" alt="Write your last name">
    <br>
    input id="submitbutton" alt="Post you comment" type="submit"
    name="submitbutton" value="Send">
    </p>
    </form>
    and instead of all the span stuff style the label like
    this...
    #myform label {font-weight:bold;color:#000;}
    .wideinput {width:450px;}
    Also you're styling things that are hidden so instead why not
    style
    input fields that are visible?
    Kim
    ambient2000 skrev:
    > Hi,
    >
    > Having trouble with the CSS of my feedback form. It
    looks OK in all the
    > browsers except Safari.
    >
    > My code is not perfect (at all), any feedback or
    assistance would be greatly
    > appreciated.
    >
    > The address is www.ambientdesign.com.au
    >
    > Thanks
    >
    >
    Kim
    http://www.geekministry.com

  • Feedback form not working.

    I am trying to do a simple feedback form to send an email to me when a button is pressed. I get an email, but all of the contents are blank. anyone might know the issue here?
    http://www.testmeserver.site90.net/feedback.html
    Here is my php Code
    <?php
    $msg = "Name:$namen";
    $msg .= "Email:$emailn";
    $msg .= "Comments:$commentsn";
    $recipient = "[email protected]";
    $subject = "$subject";
    $mailheaders = "From: $email";
    $mailheaders .= "Reply-To: $email";
    mail($recipient, $subject, $msg, $mailheaders);
    header("Location: http://www.testmeserver.site90.net/thankyou.html");
    ?>

    This is the code to which the form is being submitted?
    Can we see the form?
    The problem is that there is nothing in this code that relates to any POSTed data from the form.  You are using some PHP variables ($namen, $emailn, etc.) but there is no link between those variables and the form.  You would need to have something like this -
    $namen = $_POST['namen']; // where "namen" is the name of the field in the form
    $emailn = $_POST['emailn'];
    $subject = $_POST['subject'];
    and so on....
    This would then bind the posted data to the PHP variables.

  • Feedback form working!

    I have at last got my feedback form working in a reasonably
    presentable manner.
    If you would like to test it, go to
    http://localhost/Corybas/index.php,
    click
    the yellow envelope at the bottom right of the home page, and
    send me a message.
    When I get the site converted to php, this envelope will
    appear on every page.
    Eventually I want to get the 'Thank you' form on a separate
    page. At present I
    am using the same page as the feedback form, and because of
    the way my templates
    are designed the page footer is in another table which is
    drawn after the
    'Contents' table, so on the Thank you page it is not drawn,
    and there is no way
    I can draw it using the standard template.
    I discovered that if I use JavaScript to launch the feedback
    page, not only can
    I close it again without IE querying it, but ZoneAlarm does
    not regard it as a
    pop-up, and does not block the feedback envelope.
    Clancy

    Clancy:
    I can't help thinking you are still confused with all of
    this. Why is the
    ZA thing bothering you anyhow? It would only be an issue for
    *you* testing
    locally....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]..
    >I have at last got my feedback form working in a
    reasonably presentable
    >manner.
    > If you would like to test it, go to
    http://localhost/Corybas/index.php,
    > click
    > the yellow envelope at the bottom right of the home
    page, and send me a
    > message.
    > When I get the site converted to php, this envelope will
    appear on every
    > page.
    >
    > Eventually I want to get the 'Thank you' form on a
    separate page. At
    > present I
    > am using the same page as the feedback form, and because
    of the way my
    > templates
    > are designed the page footer is in another table which
    is drawn after the
    > 'Contents' table, so on the Thank you page it is not
    drawn, and there is
    > no way
    > I can draw it using the standard template.
    >
    > I discovered that if I use JavaScript to launch the
    feedback page, not
    > only can
    > I close it again without IE querying it, but ZoneAlarm
    does not regard it
    > as a
    > pop-up, and does not block the feedback envelope.
    >
    > Clancy

  • Feedback form validation not working

    Hi all,
    My feedback form i am put form validation its not working, please help me,
    my entire code is given below
    <?php
              /* ========================= CODE WILL EXECUTE WHEN FORM WILL SUBMIT =====================*/
                        if($_GET["formFilledStatus"]=="t")
                                  $name = $_GET['txtName'];
                                  $email = $_GET['txtEmail'];
                                  $phone          =          $_GET['txtPhone'];
                                  $dateofappoitment          =          $_GET['txtDOA'];
                                  $timeofappoitment          =          $_GET['txtTA'];
                                  $userRequirement = $_GET['txtSuggestion'];
                                  $to= "[email protected]";
                                  $subject = "FEEDBACK & ENQUIRY FORM";
                                  $message = "<BR><B> User Name:- </B>".$name."<BR><BR><B> Email:- </B>".$email."<BR><BR><B> Phone:- </B>".$phone."<BR><BR><B>Date of Appoitment:-</B><BR>".$dateofappoitment."<BR><BR><B> Time of Appoitment:- </B>".$timeofappoitment."<BR><BR>                                <B> Address:- </B>".$userRequirement;
                                  $headers  = "MIME-Version: 1.0\r\n";
                                  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
                                  $headers .= "From:".$email;
                                  // Additional headers
                                  //$headers .= 'Bcc: [email protected]' . "\r\n";
                                  $mailStatus=mail($to, $subject, $message, $headers);
                        /* ========================= END CODE =====================*/
    ?>
    <script language="javascript">
    function isEmail(email)
                        if(email.indexOf("@") != "-1" && email.indexOf(".") != "-1")
                        return true;
                        else
                        return false;
              function validate()
                        if(document.enquiryForm.txtName.value=="")
                                  alert("Name required!");
                                  document.enquiryForm.txtName.focus();
                                  return false;
                        if(document.enquiryForm.txtPhone.value=="")
                                  alert("Please Enter your Phone!");
                                  document.enquiryForm.txtPhone.focus();
                                  return false;
                        if(document.enquiryForm.txtDOA.value=="")
                                  alert("Please Select your date of appoitment!");
                                  document.enquiryForm.txtDOA.focus();
                                  return false;
                        if(document.enquiryForm.txtTA.value=="")
                                  alert("Please Enter time of appoitment!");
                                  document.enquiryForm.txtTA.focus();
                                  return false;
                        if(document.enquiryForm.txtSuggestion.value=="")
                                  alert("Please Enter your address!");
                                  document.enquiryForm.txtSuggestion.focus();
                                  return false;
    </SCRIPT>
    <style type="text/css">
    <!--
    .home_page_font {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 11px;
              font-style: normal;
              line-height: normal;
              font-weight: bold;
              font-variant: normal;
              text-transform: none;
              color: #333333;
              text-align: justify;
    .home_page_font1 {          font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 11.6px;
              font-style: normal;
              line-height: normal;
              font-weight: normal;
              font-variant: normal;
              text-transform: none;
              color: #333333;
              text-align: justify;
    .home_page_font1 {          font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 11px;
              font-style: normal;
              line-height: normal;
              font-weight: normal;
              font-variant: normal;
              text-transform: none;
              color: #868d98;
              text-align: justify;
    .style6 {color: #000000}
    -->
    </style>
            <FORM ACTION="" METHOD="GET" NAME="enquiryForm1" ONSUBMIT=" return validate()">
                        <INPUT TYPE="HIDDEN" NAME="formFilledStatus" VALUE="t">
                   <DIV ALIGN="LEFT">
            <TABLE WIDTH="100%" BORDER="0" ALIGN="CENTER" CELLPADDING="3" CELLSPACING="0" BORDERCOLOR="#F1D6D6" class="home_page_font1" STYLE="border-collapse:collapse;">
            <?php
                        /* ============ CODE IF MAIL SUCCESSFULLY SENT ====================== */
                        if($mailStatus)
                        ?>
                  <TR>
                <TD COLSPAN="2" HEIGHT="25">
                <DIV class="c-text1" ALIGN="CENTER"><b>
                <h3 class="style6">Your Enquiry Has Been Successfully Sent.<b></h3>
                </DIV></TD>
              </TR>
                          <?
                          /*================== CODE END ====================================== */
    ?>
                          <TR>
                <TD COLSPAN="2" HEIGHT="25">
                <DIV class="home_page_font" ALIGN="CENTER">
                  <div align="left">Suggestion &amp; Feedback Form</div>
                </DIV></TD>
              </TR>
              <TR>
                <TD class="power-com1"><FONT COLOR="#FF0000">* </FONT> <STRONG>Your
                Name :</STRONG></TD>
                <TD><INPUT NAME="txtName" SIZE="35" MAXLENGTH="48" VALUE="" class="txtfld"></TD>
              </TR>
              <TR>
                <TD class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD class="power-com1"><STRONG>Your
                E-Mail : </STRONG></TD>
                <TD><INPUT NAME="txtEmail" MAXLENGTH="48" SIZE="35" VALUE="" class="txtfld"></TD>
              </TR>
              <TR>
                <TD class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD class="power-com1"><FONT COLOR="#FF0000">* </FONT><STRONG>Phone/Mobile
                :</STRONG><br>(Include Country/Area Code)</TD>
                <TD><INPUT TYPE="TEXT" NAME="txtPhone" SIZE="22" MAXLENGTH="60" VALUE="" class="txtfld"></TD>
              </TR>
              <TR>
                <TD class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD class="power-com1"><STRONG><font color="#FF0000">*</font>Date of Appoitment :</STRONG><br>(Include Country/
                Area Code)</TD>
                <TD><INPUT TYPE="TEXT" NAME="txtDOA" SIZE="22" MAXLENGTH="60" VALUE="" class="txtfld" id="txtDOA"></TD>
              </TR>
              <TR>
                <TD class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD class="power-com1"><STRONG><font color="#FF0000">*</font>Time of Appoitment : </STRONG></TD>
                <TD><INPUT NAME="txtTA" SIZE="35" VALUE="" class="txtfld" id="txtTA"></TD>
              </TR>
              <TR>
                <TD class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD VALIGN="TOP" class="power-com1"> </TD>
                <TD> </TD>
              </TR>
              <TR>
                <TD VALIGN="TOP" class="power-com1"><FONT COLOR="#FF0000">* </FONT> <STRONG>Address</STRONG></TD>
                <TD><TEXTAREA NAME="txtSuggestion" ROWS="3" COLS="29" WRAP="Virtual" class="txtfld"></TEXTAREA></TD>
              </TR>
              <TR>
                <TD COLSPAN="2">
                <CENTER><INPUT TYPE="SUBMIT" NAME="" VALUE="Submit Query">
                <INPUT TYPE="RESET" NAME="Reset1"></CENTER></TD>
              </TR>
            </TABLE>
              </DIV></FORM>

    Rather than reinventing the wheel, I tend to use SpryValidation widgets to validate the form using JavaScript. However, to ensure that no validation is untouched, you also need to validate the inputs using serverside script.
    The example that you have shown is valiadtion in JavaScript. This means that anyone with JS turned off will bypass your validation.
    Gramps

Maybe you are looking for

  • Install on Solaris 9

    I am using an Ultra60, 512MB, 2*450 processors. Nothing but Solaris9 installed. Try to install 9.2.1.0.1 Enterprise Edition 64bit. All OK untill database creation when I get 'run out of memory' error. In Solaris 8 with Oracle 7 you had to modify /etc

  • What program is used by Trx F110 to make the report text file?

    Hello everybody! Do you know what is the program used by trx F110 (Automatic Payment transactions) to create the flat text file in the Operating System? I know that, in case of a payment method 'C' (check), SAP can print the check using the programs

  • Can't Recall Two-Digit Screensets! Ideas?

    Hi, I can't figure out why I'm unable to recall two-digit screensets other than from the Screenset menu. I'm holding down Control, have tried both the number pad and QWERTY number keys, the fn button (I'm on the new flat Apple keyboard): nada. Any id

  • Open test DB on internet

    Hi, I wonder if anyone knows about a test DB site on internet? I don`t want to install a DB on my home computer. (I have just a MAC) I use oracle DB at my work, but I want to test some statements at home.

  • Impossible to shut down iTunes

    Its impossible to stop iTunes, not even when I force iTunes to do so. So I cannot shut down my Mac (Lion)  in a normal way and have to use the startbutton to close down. What to do? (once in a while iTunes does what I want but that is indeed once in