Form Posts & Emails with no Results

I'm working on a php form that I'm trying to feed through GoDaddy's network.  I have a beginner's understanding and took code to create the php file that was linked in the "actions" part of the DW CS3 form's file.
The email was sent to me with all the identifiers.  However, nothbing was populated.  Further, the sender's email wasn't posted - this is what was listed for the sender:
[email protected]
The form can be reached here: http://www.sophisticup.com/SignUp.php
I think I'm missing something small but it is having a great effect on my final results.  Can anyone help me?
Thanks!
Below is my code for the linked "action" php file:
<?php
/* Subject and Email Variables */
$emailSubject = 'Sign Up Form';
$webMaster = 'emailremoved';
/* Gathering Data Variables */
$FNameField = $_POST['firstname'];
$LNameField = $_POST['lastname'];
$TitleField = $_POST['title'];
$Add1Field = $_POST['address1'];
$Add2Field = $_POST['address2'];
$CityField = $_POST['city'];
$StateField = $_POST['state'];
$ZipField = $_POST['zipcode'];
$EmailField = $_POST['email'];
$PhoneField = $_POST['phone'];
$EmailPhoneField = $_POST['emailorphone'];
$CallTimeField = $_POST['timetocall'];
$RevenueField = $_POST['revenue'];
$GSizeField = $_POST['gsize'];
$CommentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
firstname: $firstname <br>
lastname: $lastname <br>
title: $title <br>
address1: $address1 <br>
address2: $address2 <br>
city: $city <br>
state: $state <br>
zipcode: $zipcode <br>
email: $email <br>
phone: $phone <br>
eorph: $emailorphone <br>
CallTime: $timetocall <br>
Revenue: $revenue <br>
GrpSize: $gsize <br>
Comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>Sophisticup - Fundraising Boutique for the Home</title>
<meta http-eequiv="Content-type" content="text/html; charset=iso-8859-1">
<style type-"text/css">
<!--
body {
background-color: #D3E8A4;
font-family: Tahoma, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color:  #000000;
text-decoration: none;
</style>
</head>
<div>
<div align="center">Thank you for your interest!  If requested, Sophisticup will contact you very soon.</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
Thanks in advance!
email removed  - moderator

Hi, I utilized the script garywpaul provided and the results were the same.  The thank you message came up after hitting submit, the email again was sent with the odd address (email link removed), and none of the populated regions were filled in.  This is completely frustrating - GoDaddy thinks it's the coding from my end.  Can anyone provide additional insight here?  They are saying that plenty of people are successfully receiving form data.  I think they're saying we're all idiots!
Below is the version where I utilized garywpaul's code:
www.sophisticup.com/SignUpForum
Sorry about the frustration level, here.  Thanks to you for your input in trying to remedy this issue.  Something that should be simple is becoming very painful!
Below is my version of his script:
<?php
/* Subject and Email Variables */
$emailSubject = 'Sign Up Form';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$fname=STRIPSLASHES($_POST['fname']);
$lname=STRIPSLASHES($_POST['lname']);
$title=STRIPSLASHES($_POST['title']);
$add1=STRIPSLASHES($_POST['address1']);
$add2=STRIPSLASHES($_POST['address2']);
$city=STRIPSLASHES($_POST['city']);
$state=STRIPSLASHES($_POST['state']);
$zip=STRIPSLASHES($_POST['zipcode']);
$email=STRIPSLASHES($_POST['email']);
$phone=STRIPSLASHES($_POST['phone']);
$emailorphone=STRIPSLASHES($_POST['emailorphone']);
$calltime=STRIPSLASHES($_POST['timetocall']);
$orgname=STRIPSLASHES($_POST['orgname']);
$revenue=STRIPSLASHES($_POST['revenue']);
$gsize=STRIPSLASHES($_POST['gsize']);
$comments=STRIPSLASHES($_POST['comments']);
echo "Thank you $fname for your submission!<br /><br />";
echo "You have submitted the following information:<br /><br />";
echo "Name: $fname  $lname<br />";
echo "Title:  $title<br />";
echo "Address: $street $city $state<br />";
echo "Zip: $zip<br />";
echo "Phone Number: $phone<br />";
echo "E-Mail Address: $email<br />";
echo "Comments: $comments<br /><br />";
// checks if bot
  if ($_POST['address'] != '' ){
die("Changed field");
echo "$Thank you for the opportunity to serve you!  We will be in touch with you soon.";
$contact="Put contact information here";
$from_d="$email";
$to_d="$email";
$subject_d='Thank you for your response';
$msg_d="Thank you $fname for your submission, find my contact information listed for your convenience.\n\n"
."$contact\n\n"
. "You have submitted the following information\n\n"
. "Name:  $fname  $lname \n"
. "Street Address: $add1\n"
. "City: $city\n"
. "Zip Code: $zip\n"
. "Phone Number: $phone\n"
. "E-Mail Address: $email\n"
mail($to_d, $subject_d, $msg_d, 'From:' . $from_d);
/*this is to owner, change the email to owners when ready*/
$from="$email";
$to="[email protected]";
$subject="Sign Up";
$msg= "Thank you for choosing Sophisticup!  We will contact you soon.\n\n"
. "Clients Name: $fname . $lname \n"
. "Title: $title\n"
. "Organization Name: $orgname\n"
. "Street Address: $street\n"
. "City:$city\n"
. "Zip: $zip\n"
. "Telephone: $phone\n"
. "Email Address: $email\n";
mail($to, $subject, $msg, 'From:' .$from);
?>
[email address removed - forum moderator]

Similar Messages

  • Form Posts & Emails with no Data Returned

    I'm working on a php form that I'm trying to feed through GoDaddy's network.  I have a beginner's understanding and took code to create the php file that was linked in the "actions" part of the DW CS3 form's file.
    The email was sent to me with all the identifiers.  However, nothbing was populated.  Further, the sender's email wasn't posted - this is what was listed for the sender:
    [email protected]
    The form can be reached here: http://www.sophisticup.com/SignUp.php
    I think I'm missing something small but it is having a great effect on my final results.  Can anyone help me?
    Thanks!
    Below is my code for the linked "action" php file:
    <?php
    /* Subject and Email Variables */
    $emailSubject = 'Sign Up Form';
    $webMaster = '[email protected]';
    /* Gathering Data Variables */
    $FNameField = $_POST['firstname'];
    $LNameField = $_POST['lastname'];
    $TitleField = $_POST['title'];
    $Add1Field = $_POST['address1'];
    $Add2Field = $_POST['address2'];
    $CityField = $_POST['city'];
    $StateField = $_POST['state'];
    $ZipField = $_POST['zipcode'];
    $EmailField = $_POST['email'];
    $PhoneField = $_POST['phone'];
    $EmailPhoneField = $_POST['emailorphone'];
    $CallTimeField = $_POST['timetocall'];
    $RevenueField = $_POST['revenue'];
    $GSizeField = $_POST['gsize'];
    $CommentsField = $_POST['comments'];
    $body = <<<EOD
    <br><hr><br>
    firstname: $firstname <br>
    lastname: $lastname <br>
    title: $title <br>
    address1: $address1 <br>
    address2: $address2 <br>
    city: $city <br>
    state: $state <br>
    zipcode: $zipcode <br>
    email: $email <br>
    phone: $phone <br>
    eorph: $emailorphone <br>
    CallTime: $timetocall <br>
    Revenue: $revenue <br>
    GrpSize: $gsize <br>
    Comments: $comments <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    /* Results rendered as HTML */
    $theResults = <<<EOD
    <html>
    <head>
    <title>Sophisticup - Fundraising Boutique for the Home</title>
    <meta http-eequiv="Content-type" content="text/html; charset=iso-8859-1">
    <style type-"text/css">
    <!--
    body {
    background-color: #D3E8A4;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-style: normal;
    line-height: normal;
    font-weight: normal;
    color:  #000000;
    text-decoration: none;
    </style>
    </head>
    <div>
    <div align="center">Thank you for your interest!  If requested, Sophisticup will contact you very soon.</div>
    </div>
    </body>
    </html>
    EOD;
    echo "$theResults";
    ?>
    Thanks in advance!

    Tamist wrote:
    The email was sent to me with all the identifiers.  However, nothbing was populated.
    Not surprising. You assign all the form values to variables that are never used, and use completely different variables that have no values to populate the email. Take this example:
    $FNameField = $_POST['firstname'];
    Then this this what you put in the email:
    firstname: $firstname <br>
    It should be this:
    firstname: $FNameField <br>

  • Multiple page form to email with sessions doesn't send mail

    I am creating a multiple page form where a user can apply for finance. I am trying to use session to keep the user input values and then the last page sent the application by email.
    My problem is the last step where it doen't send the email. I'm not sure if it the session I'm using is wrong because a simple form without sessions works fine.
    here are the forms
    First page is the input for with variables
    <form action="Finance_form_proposal_Address.php" method="post" >
      <span id="sprycheckbox1">
      <input  name="Disclaimer" type="checkbox" value="yes">
      <span class="checkboxRequiredMsg">Please confirm that you have read and understood the Terms and Conditions.</span></span>
      <div id="F1"><table width="100%" border="1" align="center" cellpadding="3" cellspacing="2">
      <tr>
        <td align="right" bgcolor="#F7E4F8" ><strong>Title:</strong></td>
        <td align="left" bgcolor="#F7E4F8"><select name="Title">
              <option value="Mr">Mr</option>
              <option value="Mrs">Mrs</option>
              <option value="Miss">Miss</option>
              <option value="Ms">Ms</option>
              <option value="Dr">Dr</option>
              <option value="Rev">Rev</option>
            </select></td>
    etc..
    </form>
    The second form:
    Getting values and input new form
    <?php session_start();
    $_SESSION['Disclaimer'] = $_POST['Disclaimer'];
    $_SESSION['Title'] = $_POST['Title'];
    $_SESSION['Forname'] = $_POST['Forname'];
    $_SESSION['Middle_name'] = $_POST['Middle_name'];
    $_SESSION['Surname'] = $_POST['Surname'];
    $_SESSION['email'] = $_POST['email'];
    $_SESSION['DOB'] = $_POST['DOB'];
    $_SESSION['DOB2'] = $_POST['DOB2'];
    $_SESSION['DOB3'] = $_POST['DOB3'];
    $_SESSION['Gender'] = $_POST['Gender'];
    $_SESSION['checkboxGroup1'] = $_POST['checkboxGroup1'];
    $_SESSION['checkboxGroup2'] = $_POST['checkboxGroup2'];
    $_SESSION['home_phone'] = $_POST['home_phone'];
    $_SESSION['mobil'] = $_POST['mobil'];
    $_SESSION['marital_status'] = $_POST['marital_status'];
    $_SESSION['Occupancy'] = $_POST['Occupancy'];
    $_SESSION['Dependants'] = $_POST['Dependants'];
    ?>
    Form on second page
    <form action="Finance_form_proposal_Bank_Details_employment.php" method="post"> <input  name="Disclaimer" type="checkbox" value="yes">
        <div id="F1"><table width="100%" border="1" align="center" cellpadding="3" cellspacing="2">
      <tr>
        <td align="right" bgcolor="#F7E4F8" ><strong>Correspondence Address:</strong></td>
        <td align="left" bgcolor="#F7E4F8"><input name="Correspondence" type="checkbox" id="Correspondence" value="yes" checked="CHECKED">
          <label for="Correspondence"></label></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>Street:</strong></td>
        <td bgcolor="#F7E4F8"><input name="Street" type="text"></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>District:</strong></td>
        <td bgcolor="#F7E4F8"><input name="District" type="text"></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>Town:</strong></td>
        <td bgcolor="#F7E4F8"><input name="Town" type="text"></td>
      </tr>
    etc ..
    </form
    Third page
    Getting values
    session_start();
    $_SESSION['Correspondence'] = $_POST['Correspondence'];
    $_SESSION['Street'] = $_POST['Street'];
    $_SESSION['District'] = $_POST['District'];
    $_SESSION['Town'] = $_POST['Town'];
    $_SESSION['County'] = $_POST['County'];
    $_SESSION['Country'] = $_POST['Country'];
    $_SESSION['Years'] = $_POST['Years'];
    $_SESSION['Months'] = $_POST['Months'];
    $_SESSION['Street2'] = $_POST['Street2'];
    $_SESSION['District2'] = $_POST['District2'];
    $_SESSION['Town2'] = $_POST['Town2'];
    $_SESSION['County2'] = $_POST['County2'];
    $_SESSION['Country2'] = $_POST['Country2'];
    $_SESSION['Years2'] = $_POST['Years2'];
    $_SESSION['Months2'] = $_POST['Months2'];
    $_SESSION['Street3'] = $_POST['Street3'];
    $_SESSION['District3'] = $_POST['District3'];
    $_SESSION['Town3'] = $_POST['Town3'];
    $_SESSION['County3'] = $_POST['County3'];
    $_SESSION['Country3'] = $_POST['Country3'];
    $_SESSION['Years3'] = $_POST['Years3'];
    $_SESSION['Months3'] = $_POST['Months3'];
    Then there is a another form to fill in , wont show that as it is in principle the same.
    This is the last page that should sent the data to email:
    <?php
    session_start();
    /* Subject mail variables */
    $emailsubject = 'Finance application from PandKshop';
    $webmaster = '[email protected]';
    /* Gathering Data */
    $goods = $_POST['goods'];
    $amount = $_POST['amount'];
    $Total_Cash = $_POST['Total_Cash'];
    $Deposit = $_POST['Deposit'];
    $Balance = $_POST['Balance'];
    $Payments = $_POST['Payments'];
    $Diclaimer = $_SESSION['Disclaimer'];
    $Title = $_SESSION['Title'];
    $Forname = $_SESSION['Forname'];
    $Middle_name = $_SESSION['Middle_name'];
    $Surname = $_SESSION['Surname'];
    $email = $_SESSION['email'];
    $DOB = $_SESSION['DOB'];
    $DOB2 = $_SESSION['DOB2'];
    $DOB3 = $_SESSION['DOB3'];
    $Gender =  $_SESSION['Gender'];
    $CheckboxGroup1 = $_SESSION['CheckboxGroup1'];
    $CheckboxGroup2 = $_SESSION['CheckboxGroup2'];
    $home_phone = $_SESSION['home_phone'];
    $mobil_phone = $_SESSION['mobil_phone'];
    $marital_status = $_SESSION['marital_status'];
    $Occupancy = $_SESSION['Occupancy'];
    $Dependants = $_SESSION['Dependants'];
    $Correspondence = $_SESSION['Correnspondence'];
    $Street = $_SESSION['Street'];
    $District = $_SESSION['District'];
    $Town = $_SESSION['Town'];
    $County = $_SESSION['County'];
    $Country = $_SESSION['Country'];
    $Years = $_SESSION['Years'];
    $Months = $_SESSION['Months'];
    $Street2 = $_SESSION['Street2'];
    $District2 = $_SESSION['District2'];
    $Town2 = $_SESSION['Town2'];
    $County2 = $_SESSION['County2'];
    $Country2 = $_SESSION['Country2'];
    $Years2 = $_SESSION['Years2'];
    $Months2 = $_SESSION['Months2'];
    $Street3 = $_SESSION['Street3'];
    $District3 = $_SESSION['District3'];
    $Town3 = $_SESSION['Town3'];
    $County3 = $_SESSION['County3'];
    $Country3 = $_SESSION['Country3'];
    $Years3 = $_SESSION['Years3'];
    $Months3 = $_SESSION['Months3'];
    $Sort_Code          = $_SESSION['Sort_Code'];
    $Account = $_SESSION['Account'];
    $Years_with_Bank = $_SESSION['Years_with_Bank'];
    $Months_with_Bank = $_SESSION['Months_with_Bank'];
    $CreditCard = $_SESSION['CreditCard'];
    $ChequeCard = $_SESSION['ChequeCard'];
    $Employment = $_SESSION['Employment'];
    $income = $_SESSION['Income'];
    $Income2 = $_SESSION['Income2'];
    $Occupation = $_SESSION['Occupation'];
              $Body = <<<EOD
    <br><hr><br>
    Goods: $goods <br>
    Amount: $amount <br>
    Total Cash: $Total_Cash <br>
    Deposit: $Deposit <br>
    Balance: $Balance
    Nine Monthly Payments of : £ $Payments
    Title: $Title <br>
    Forname: $Forname <br>
    Middle Name: $Middle_name <br>
    Surname : $Surname <br>
    Email: $email <br>
    DOB: $DOB/$DOB2/$DOB3 <br>
    Gender: $Gender <br>
    Home_phone: $CheckboxGroup1 Mobile phone: $CheckboxGroup2 <br>
    Home Phone number: $home_phone <br>
    Mobile Phone number: $mobil_phone <br>
    Marital_Status: $marital_status <br>
    Occupancy : $Occupancy <br>
    Dependants: $Dependants <br>
    Correspondence Address: $Correspondence <br>
    Street: $Street <br>
    District: $District <br>
    Town: $Town <br>
    County: $County <br>
    Country: $Country
    Years: $Years
    Months: $Months
    Street2: $Street <br>
    District2: $District2 <br>
    Town2: $Town2 <br>
    County2: $County2 <br>
    Country2: $Country2
    Years2: $Years2
    Months2: $Months2
    Street3: $Street3 <br>
    District3: $District3 <br>
    Town3: $Town3 <br>
    County3: $County3 <br>
    Country3: $Country3 <br>
    Years3: $Years3 <br>
    Months3: $Months3 <br>
    Sort Code: $Sort_Code <br>
    Account: $Account <br>
    Years with the Bank: $Years_with_Bank <br>
    Months with the Bank: $Months_with_Bank <br>
    CreditCards: $CreditCard <br>
    Cheque Card: $ChequeCard <br>
    Employment: $Employment <br>
    Income: £$income <br>
    Income Frequency: $Income2 <br>
    Occupation: $Occupation <br>
    EOD;
              $headers = "From: $email\r\n";
              $headers .= "content-type: text/html\r\n";
              $succes = mail($webmaster, $emailsubject, $Body, $headers);
    session_destroy();
    /* Results rendered as HTML */
    $theResults = <<<EOD
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head>
          <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
          <title>Thank you! The Piano and Keyboard Shop Online</title>
          <link rel="STYLESHEET" type="text/css" href="contact.css">
          <link href="The Piano and Keyboard Shop.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h2>Thanks for your application!<br />
    We endavour to get back to you as soon as possible with application results</h2>
    Please contact us on 0116 2541053 if you have any questions regarding your finance application
    Return to <a href="../index_main.php">Home Page</a>
    <div id="advertising">
        <div id="add_left"><a href="Contact.php">Contact us</a><br>
          <a href="About.php">About us</a><br>
          <a href="Finance.php">Finance</a><br>
    </div>
        <div id="adds_middle"><a href="term-conditions.php">Terms and Conditions</a><br>
          <a href="Privacy-Policy.php">Privacy Conditions</a><br>
          <a href="FAQ.php">FAQ</a><br>
    </div>
        <div id="adds_right"><a href="http://www.youtube.com/user/KeysoundWebsite">Follow us on YouTube</a><br>
          <a href="https://twitter.com/KeysoundUK">Follow us on Twitter</a><br>
          <a href="https://www.facebook.com/pages/Keysound/163590297024385">Follow us on Face book</a><br>
    </div>
      </div>
      <div id="advertising"> <div id="copy"><img src="files/Images/copyright.gif" width="19" height="22">
    </div> </div>
    </body>
    </html>
    EOD;
    echo "$theResults";
    ?>
    Is there something wrong with my sessions or just something in the code?

    Standard Apple Mail. I'm running Yosemite 10.10.1, and I'm amazed to see that About Mail says it's Mail Version 8.1 (1993), copyright 1995-2014 Apple Inc. 
    Interesting thought, do you think that it doesn't like to work with itself?  Actually, I'm fairly sure I've had the problem inside of other apps but I should document that.  I'll keep notes to see where this happens. 

  • Submit a form through email with multiple signatures

    I have a form, where a number of people can digitally sign the form and email it to the next person. Designed in LiveCycle, with javascript and reader extended.
    On the first sign and email, everything works great. However when the next person gets the form signs it and tries to email it, the body and subject is replaced by:
    The attached file contains data that was entered into a form. It is not the form itself.
    The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 or later for more details.
    Whats all the hocus pocus?
    edit: Something I noticed is that, with some digital signatures, I disable a good majority of the form to read only "lock fields", then when I email I get the above text replaced in the body of the email.

    I have a form, where a number of people can digitally sign the form and email it to the next person. Designed in LiveCycle, with javascript and reader extended.
    On the first sign and email, everything works great. However when the next person gets the form signs it and tries to email it, the body and subject is replaced by:
    The attached file contains data that was entered into a form. It is not the form itself.
    The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 or later for more details.
    Whats all the hocus pocus?
    edit: Something I noticed is that, with some digital signatures, I disable a good majority of the form to read only "lock fields", then when I email I get the above text replaced in the body of the email.

  • Sending Email with Query Result (Table Format)

    Hi,
    I have a query result from ExecuteSQL task e.g.:
    ID Product
    1     Pencil
    2     Crayon
    3     Eraser
    I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
    Is it possible in SSIS?
    cherriesh

    It has to be HTML format . Read Tony's article
    http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Offline Interactive PDF Forms Using EMail with WebDynpro for ABAP

    These is a tutorial on implementing Offline Interactive PDF Forms using Email to both send out and receive the form back using WebDynpro for Java.
    Is it possible to implement the same using WebDynpro for ABAP, specifically receiving the forms via email server.
    Regards,
    Mark

    Hi Mark,
    Check this out :
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    Go to section :
    Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
    and for the ABAP WebDynpro :
    SAP Interactive Forms by Adobe in Web Dynpro for ABAP (Session 3A) .
    I managed to make it work in my internal sytem.
    Goodluck.
    Cheers,
    Danny

  • Send Form to Email with Spry & PHP

    Hi there,
    i dont understand this page
    Submit
    forms with XHR
    What is in this page: SubmitChecker.php?
    How do I send the Form Information to an Email?
    Is there a tutorial from start to finish. All this tutorials
    or sample stop at the most important part. How to send.
    Thanks for help
    Denis

    Thanks for your little advice. I got it. And the send code
    should be placed in the php file called by the form ;-)
    TestPage
    Thanks a lot !!!
    Denis
    Which download? Can you please post a link to the download
    I know how to send forms with PHP. But now i want to try it
    without load a new page. The problem is, that i dont understand how
    to merge all the things. Spry, Form and PHP.
    I guess i have to put the sendscript inside here:
    // Callback function that will update the response_form1 div
    with the response that comes from the server
    function updateResponseDiv(req)
    Spry.Utils.setInnerHTML('response_form1',
    req.xhRequest.responseText);
    Or is this only the place for the message that the form has
    been submitted?
    Do i have to send the form inside the SubmitChecker.php
    It's a pity that all the samples stop at the important part.
    And that they are all in english.
    It will be greatful if you have a simple sample with
    Submitting a Form with Spry and PHP. Just to see how it works and
    where to place the code.
    cheers
    denis

  • Forwarding email with animations results in Missing Plug-in

    This question is partly related to an earlier post regarding an IncrediMail email that contains jpg and gif pics, and links to websites.
    When the email is received everything is seen as it should be.  However, when either the Reply button is clicked to reply to the sender, or the Forward button is clicked to forward to someone else, the pics and links in the email are replaced with "Missing Plug-in".  What is causing this? 

    Maybe the links you posted but just saying Look in the More like this section really doesn't. But hey you got time on your hands.
    Eric Root wrote:
    Maybe this will help. If you monitor the "More Like This" box, other threads appear. Opening them usually displays other threads.
    http://https://discussions.apple.com/message/19122030#19122030
    http://https://discussions.apple.com/message/18048618#18048618

  • Problem by  Sending an Email with attached Adobe Interactive Form (Code)

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
    Report FP_EXAMPLE_01
    Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
    customer TYPE scustom,
    bookings TYPE ty_bookings,
    connections TYPE ty_connections,
    fm_name TYPE rs38l_fnam,
    fp_docparams TYPE sfpdocparams,
    fp_outputparams TYPE sfpoutputparams,
    error_string TYPE string,
    l_booking TYPE sbook,
    t_sums TYPE TABLE OF sbook,
    l_sums LIKE LINE OF t_sums,
    fp_formoutput TYPE fpformoutput.
    PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
    PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
    PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
    sbook (Single flight reservation)
    spfli (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
    WHERE customid = p_custid
    AND carrid IN s_carrid
    ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
    FOR ALL ENTRIES IN bookings
    WHERE carrid = bookings-carrid
    AND connid = bookings-connid
    ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = p_form
    IMPORTING
    e_funcname = fm_name.
    IF sy-subrc <> 0.
    MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
    l_sums-forcuram = l_booking-forcuram.
    l_sums-forcurkey = l_booking-forcurkey.
    COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    customer = customer
    bookings = bookings
    connections = connections
    t_sums = t_sums
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
    IMPORTING
    e_adserrstr = error_string.
    IF NOT error_string IS INITIAL.
    we received a detailed error description
    WRITE:/ error_string.
    EXIT.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
    path TYPE string,
    fullpath TYPE string,
    default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-pdf
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

    Hi Kevin,
    Please try this code to send your mail, i wrote it and works well in many system.
    Take care if in your profile you got an e-mail adress define .
    Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
    Let me know if it's works.
    Best regards.
    <i>**----
    CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Convert the pdf given by function module into Binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    Set the name of the attached document
    att_subject = 'Template du PDF'.
    TRY.
    Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    Read the E-Mail address for the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = sy-uname
          TABLES
            return   = ireturn
            addsmtp  = iaddsmtp.
        LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
          CLEAR bapiadsmtp.
          MOVE <smtp> TO bapiadsmtp.
        ENDLOOP.
        CASE bapiadsmtp-e_mail.
          WHEN space.
    No adress main for user, so send it to the default mail adress
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
          WHEN OTHERS.
            recipient =
         cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
        ENDCASE.
    Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
        add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    Add document to send request
        CALL METHOD send_request->set_document( document ).
    Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.</i>

  • How to make result of form post to jsp to appear in child frame

    Two frames inside a frameset, A and B (A is the first frame, B is the second). A has as it's source an html page containing a form with a submit button. The form posts to a jsp called Content.jsp. Works great, except: I want the results returned by Content.jsp to appear inside frame B. Seems like I've got the target for the form inside A wrong somehow, because when I click the submit button inside frame A, my results appear in a new browser instance, rather than inside B. Here's what the form declaration looks like:
    <form action="Content.jsp" method="post" target="_parent.frames[1]">
    If I make the target parent, that obviously replaces the whole page. If I make the target self, that obviously replaces the contents of frame A. I want to replace the contents of frame B. Any ideas?

    Thanks, but I'm not using IFrame, just Frame and FrameSet. In any event, I have tried using the name attribute to no avail. Here's a really simple version of the code:
    //Parent frameset
    <frameset rows="50%,50%">
    <frame name="A" src="testSubmit.html">
    <frame name="B" src="">
    </frameset>
    //Here's the form in testSubmit.html
    <form ACTION="testResult.html" METHOD="POST" TARGET="_parent.B">
    <input TYPE="SUBMIT" VALUE="Click Me">
    </form>
    I've also tried TARGET="_parent.frames[1]" with the same result -- a new browser window is launched rather than the results being displayed in B.
    Thanks for any assistance.

  • Need my PHP form to send $user email with attachment

    Hi guys,
    I have a PHP form which submits the result to me and also sends the $user a 'thank you' email, which works fine.
    What I want to do is for the email that the $user is sent to have an attachment (probably PDF).
    Does anyone know if this is possible and if so, how I could edit my code?
    My code looks like:
    <?php
    $to = "[email protected]";
    $subject = "Form Submission";
    $email=$_POST['email'] . "\r\n";
    $message = $headers;
    $message .= "Name: " . $_POST["firstname"] . "\r\n";
    $message .= "Surname: " . $_POST["surname"] . "\r\n";
    $message .= "Company: " . $_POST["company"] . "\r\n";
    $message .= "Address: " . $_POST["address1"] . ", " . $_POST["address2"] . ", " . $_POST["address3"] . ", " . $_POST["postcode"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $message .= "E-mail Confirm: " . $_POST["email_confirm"] . "\r\n";
    $message .= "Telephone: " . $_POST["tel"] . "\r\n";
    $message .= "Spend: " . $_POST["aams"] . "\r\n";
    $message .= "Mailing List: " . $_REQUEST['mailinglist'] . "\r\n";
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.google.com' );
    exit();
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.co.uk/sent.php' ) ;
    $user = "$email";
    $usersubject = "Thank you for registering";
    $userheaders = "From: [email protected]\n";
    $usermessage = "Dear " . $_POST["firstname"] . ",
    Thank you for filling out my online form. Please see the attached document.
    From me
    www.mydomain.com
    mail($user,$usersubject,$usermessage,$userheaders);
    ?>
    Many thanks and I hope to hear from you.
    SM

    thanks guys...
    i added the line...
    $userattachment = chunk_split(base64_encode(file_get_contents('attachment.pdf')));
    ...but, although the 'user' email still comes through there is no attachment.
    as you can probably tell i am useless with php so would appreciated any further help.
    many thanks,
    sm

  • Send confirmation email with form data

    Hi:
    I need to have a form do several things when the user hits submit and I'm hoping someone can give me some insite:
    1. It needs to insert record into my DB (got that one figured out)
    2. It then needs to send two emails with all of the form information, the first one to the email address that the user inputs in a field, the second to a general box (ie [email protected]).  This is where I am seriously stuck.
    Any help you can offer would be much appreciated!
    thx!

    I'm using the Dreamweaver Insert Record (it's a MySQL db  with PHPmyAdmin as the face).  This seems like it should be a fairly common and standard request and I just can't seem to find the right answer.  I can post code, if that would help.
    ab

  • SSO with a website using Apache Httpclient form post

    Hi ,
    I am trying to obtain, SS0 with a website, that accepts the user information via post.
    I tried using app Integrator, but the website sends a cookie in first request, and redirects to another URL. App Integrator is only catching the first response.
    Thus i tried implementing this Form post using Apache HTTPClient class inside the Abstractportacomponent, as shown..
    The login is taking place. But, When i click on any link on the page, It is redirecting to the login page again, I am wondering where should i give the Cookie, so the portal request will include that cookie in its subsequent requests, so that i wont be prompted for login agian..
    thank you,
    chiranjeevi.
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
        {try
                      String url = "http://www.xxxxxxxxxxxxx.com/gold_online/validate.asp";
                      //Here, calling the timberline comes into place.
                       HttpClient client = new HttpClient();
                        PostMethod method = new PostMethod (url);
                        method.setFollowRedirects(false);
                        method.addParameter( "code","xxxxxxx");
                        method.addParameter( "upass", "xxxxxx" );
                                  int statusCode = client.executeMethod( method );
                        if( statusCode != -1 ) {
                             // The Status code for this first request is 302..which is a redirect with the redirect path
                             Header locationHeader = method.getResponseHeader("location");
                             Header cookie = method.getResponseHeader("set-cookie");
                             String redirectedURL = locationHeader.getValue();
                             String host = "http://www.xxxxxxxxxxxxxx.com/gold_online/";
                             redirectedURL = host+redirectedURL;
                             GetMethod method2 = new GetMethod (redirectedURL);
                             method2.setFollowRedirects(false);
                             method2.setRequestHeader("cookie",cookie.getValue());
                             method2.addRequestHeader("Accept", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, /");
                             int statuscode2 = client.executeMethod( method2);
                             String contents  = method2.getResponseBodyAsString();
                             // Converting the Relative URLs to Absolute URLs
                             contents = replace (contents,"src=\"","src=\""+host);
                             contents = replace(contents,"href=\"","href=\""+ host);
                             Cookie ck = new Cookie("cookie", cookie.getValue()) ;
                             //adding the cookie to the response...
                             response.addCookie(ck);
                             response.write(contents);
                          method.releaseConnection();

    Hi Manish,
    first, welcome on SDN! About your question:
    The URL iView in SP9++ has been reported quite instable from different sides (just do a look on "URL iView" within this forum). The alternative for the aim you have is to use the good "old" application integrator iView, which behaves very stable and will do what you want without hesitating...
    Also see URL iView and HTTP System - SSO to web app
    Hope it helps
    Detlev
    PS: Please consider to reward point for helpful answers on SDN. Thanks in advance!

  • How can I attach a form to an email with TO address default in?

    I have a form with a hyperlink to an email address.  I want to have it when the user clicks the hyperlink the form attaches to an email with the address filled out.  I have figured out how to open an email with the email filled out; and how to open an email with the form attached - but not both.  I am not very familiar with JavaScript - but I have to believe there is a way to "Execute a menu item -- File>Attach to email..." AND "open a web link -- Mailto:[email protected]".

    You can use either the doc.mailDoc (best) or doc.submitForm JavaScript methods. For more information, see:
    mailDoc: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    submitForm: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.537.html

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

Maybe you are looking for

  • Calling all Power Pivot users! May TechNet Gurus announced!

    The results for May's TechNet Guru competition have been posted! http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx Congratulations to all our new Gurus for May! We will be interviewing some of the winners

  • How to write to log files using java files from JSP

    Anybody knows different options in writing to log files using JSP?

  • Sql Apply on standby stops on error

    hi all, I have run into problem I can't figure out. There are test and production databases, for both there are logical standby databases. For example, when materialized view is created on primary database, I see error "ORA-16226: DDL skipped due to

  • IR sync to Vista 64

    Yes, another Vista 64 bit problem. I have a Palm m500 and a Tungsten T3. I read the posts and bought an IR-USB from Cables Unlimited. Driver info: MosChip Semiconductor, driver version 1.3.0.0 The PC sees both of my palms and I can send a VCF from th

  • Can i use lightroom 4 with windows xp

    help with lightroom 4