ASP insert record receive a mail alert

Hi,
I have an insert record in my ASP page to my db Access,
that's works fine.
I want to know if it is possible to send at the same time a
mail to me that
tell me there is a new record?
Can I put two form actions in the same form?
<form action="<%=MM_editAction%>" method="POST"
name="frm_connaitre"
id="frm_connaitre">
<form action="/fr/mail/mail.asp" method="post"
name="frm_connaitre"
id="frm_connaitre">
Thanks in advanced
Sam

Hi Bregent,
Can you explain to me how to execute the form mail script
after the insert
record?
Thanks in advanced
Sam
"bregent" <[email protected]> a écrit
dans le message de news:
et44g1$cqr$[email protected]..
> No. You should execute the form mail script after the
insert record is
> successful.

Similar Messages

  • ASP insert record receive mail alert

    Hi,
    I have an insert record in my ASP page to my db Access,
    that's works fine.
    I want to know if it is possible to send at the same time a
    mail to me that
    tell me there is a new record?
    Can I put two form actions in the same form?
    <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    id="frm_connaitre">
    <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    id="frm_connaitre">
    Response from bregent:
    No. You should execute the form mail script after the insert
    record is
    successful.
    My question:
    Can someone explain to me how to execute the form mail script
    after the
    insert
    record?
    Thanks in advanced
    Sam

    All you do is locate the part of the insert script that
    handles the
    redirection to the success page and then copy (or write) your
    mail script
    there.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "SamDesign.be" <[email protected]> wrote in
    message
    news:et6t3a$r77$[email protected]..
    > Hi,
    > I have an insert record in my ASP page to my db Access,
    that's works fine.
    > I want to know if it is possible to send at the same
    time a mail to me
    > that
    > tell me there is a new record?
    > Can I put two form actions in the same form?
    >
    > <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    > id="frm_connaitre">
    > <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    > id="frm_connaitre">
    >
    > Response from bregent:
    > No. You should execute the form mail script after the
    insert record is
    > successful.
    >
    > My question:
    > Can someone explain to me how to execute the form mail
    script after the
    > insert
    > record?
    > Thanks in advanced
    > Sam
    >
    >

  • E-mail Alerts have stopped

    Something has happened on our server and we are no longer receiving e-mail alerts of any kind. Can someone point me in a direction so I can let the IT consultant fix the issue? Thank You

    Hi Jim,
    Start with checking the services to see if tyhe SBO mailer is running. If yes check the definition of the alerts so that they are still defined to send email. ALso chech the outbox in B1 to see if there are mails not sent.
    Further, check with your IT guys that the name or IP of the SMTP server has not changed.
    I hope it helps,
    Jesper

  • Insert record & mail

    Im trying to insert data captured from a registration form
    using Dreamweavers insert record scripts and need the data to be
    sent to a user as it has a activation link inside the mail using
    random numbers inserted into the database via a hidden form field.
    Ive put the PHP Mail after the "$Result1 =
    mysql_query($insertSQL, $sgu) or die(mysql_error());" line - but
    its not sending at all.
    Is there something i need to do or is there something im
    doing wrong? Ive tried two variations of the mail() function, one
    which i know for sure works as im already using it else where - and
    one i discovered as a solution to the problem im having when
    googling it.
    Any help would really be appreciated!
    Thanks,
    J

    All you do is locate the part of the insert script that
    handles the
    redirection to the success page and then copy (or write) your
    mail script
    there.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "SamDesign.be" <[email protected]> wrote in
    message
    news:et6t3a$r77$[email protected]..
    > Hi,
    > I have an insert record in my ASP page to my db Access,
    that's works fine.
    > I want to know if it is possible to send at the same
    time a mail to me
    > that
    > tell me there is a new record?
    > Can I put two form actions in the same form?
    >
    > <form action="<%=MM_editAction%>" method="POST"
    name="frm_connaitre"
    > id="frm_connaitre">
    > <form action="/fr/mail/mail.asp" method="post"
    name="frm_connaitre"
    > id="frm_connaitre">
    >
    > Response from bregent:
    > No. You should execute the form mail script after the
    insert record is
    > successful.
    >
    > My question:
    > Can someone explain to me how to execute the form mail
    script after the
    > insert
    > record?
    > Thanks in advanced
    > Sam
    >
    >

  • Do we need to create the mx records if the send/receive the mail in the same organization?

    1,May I know do we need to create the mx records if we send/receive the mail in the same organization?
    2,If we send /receive the mail between two different organization/forest, we need to create the mx records  ,is it right?
    Please click the Mark as Answer button if a post solves your problem!

    1,May I know do we need to create the mx records if we send/receive the mail in the same organization?
    2,If we send /receive the mail between two different organization/forest, we need to create the mx records  ,is it right?
    Please click the Mark as Answer button if a post solves your problem!
    for 1. If you mean the same Exchange org, no.
    For 2, it depends. You need a MX record for your receiving SMTP server ( At least, You *should* have one), but if sending to another org, not necessarily, as you could smarthost messages to it and a MX would not be required.
    Just curious, what problem are you trying to solve?
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Why is mail not receiving Calendar email alerts?

    Why is mail not receiving Calendar email alerts?

    i have it also
    where is everybody?
    Do I have to go to another site ?

  • Validate 2 E-mail address fields in insert record form

    Hello,
    I have used the Insert Record Form Wizard to create a form, including using the Validate Form Server Behavior to validate many fields.
    I can't figure out how to compare & validate 2 E-mail address fields.
    After the form was created I opened the existing Validate Form Server Behavior - Advanced tab and built the condition {sub_email2} != {sub_email} but this had no affect on submitting the form.
    The other thing I tried was creating a new Compare Transaction Field behavior with the same condition {sub_email2} != {sub_email}, this also seemed to have no affect.
    I am just a beginner, so I admit to not really knowing what I'm doing, for me ADDT has been a great aid.
    The other thing I noticed, when I tried both the items above, besides not affecting being able to submit the form with different E-mail addresses. The red asterisks indicating a required field, would disappear.
    Here is the form http://www.oescahealthregistry.org/forms/pedigree_submission.php this version of the form does NOT include either of my attempts to validate the E-mail fields.
    Thanks in advance for your help.
    Dennis

    Hi,
    A compare statement should work fine. As an example I made small form that inserts name and email (2 fields) using Insert record wizard.
    Name field is required, email field is required and checks that its a valid email structure ([email protected]). I then finish the wizard.
    <input type="text" name="email" id="email" value="<?php echo KT_escapeAttribute($row_rsemail['email']); ?>" size="32" />
    <?php echo $tNGs->displayFieldHint("email");?> <?php echo $tNGs->displayFieldError("email", "email"); ?>
    I then add the extra field to the form that the 2nd email will be entered into, this one I called email2, I then copied the display hint and fielderror code from the first email and placed it behind the 2nd email box and changed the text to reflect email2. Which probably doesnt matter but I put it there anyway.
    <input name="email2" type="text" id="email2" size="32" />
    <?php echo $tNGs->displayFieldHint("email2");?> <?php echo $tNGs->displayFieldError("email2", "email2"); ?>
    Now that I have both email fields in the form, I go to the developer tools under server behavior and select compare transactions fields under form validation.
    I hit the + to add a field I then choose email for field, then == for condition, then {POST.email2} for compare to. I enter in an error message and hit ok.
    Thats it the form is ready.
    The first email field will check against email validation and the 2nd email will check against the first email.
    I hope that helps.
    Take note that the database actually only has 2 fields to enter data. Then 2nd email field is only for validation.
    Message was edited by: Albert S.

  • How do I stop receiving Mail alerts on the iPad? E.g when browsing Safari a Mail alert box will pop up when I receive a new email. I don't want this alert. Thanks.

    How do I stop receiving Mail alerts on the iPad?
    e.g. When browsing in Safari I will be interrupted by a 'ping' sound and a Mail alert box every time a new email comes in to my Inbox. This is irritating. How do I stop this? To see if I have new Mail I just prefer to go to Mail and my Inbox at convenient intervals.
    Thank you.

    The same way you'd change any notifications: Settings>Notifications>Mail. Change it to "Banner" or "None".

  • Send Email after Insert Record

    I am by no means a coder so please be gental. I have a
    contact page that I have insert into a database, but I am also
    trying to send an email after it inserts into the db. But I cant
    seem how to make it work. Dreamweaver wrote the code for the insert
    and I am not sure were to go from here. I am using asp vb.
    thnaks

    On 11 Mar 2007 in macromedia.dreamweaver.appdev, jeremy12345
    wrote:
    > I am by no means a coder so please be gental. I have a
    contact page
    > that I have insert into a database, but I am also trying
    to send an
    > email after it inserts into the db. But I cant seem how
    to make it
    > work. Dreamweaver wrote the code for the insert and I am
    not sure
    > were to go from here. I am using asp vb.
    See all those Request.Form("nameSuffix") and similar? They
    contain the
    information posted from the form, and are still available to
    you after
    the database has been populated.
    What you need to do:
    - Find out from your hosting provider what mail component(s)
    are
    available on your server.
    - Create an email using the information from the form:
    <%
    DIM MyEMailBody, MyEMail
    MyEMailBody = "Name: " & Request.Form("nameFirst") &
    MyEMailBody = MyEMailBody & Request.Form("nameMiddle")
    MyEMailBody = MyEMailBody & Request.Form("nameLast")
    & VBCrLf
    ' VBCrLf is a CarriageReturn/LineFeed (ie a new line)
    ' Details Below will vary depending on the mailer component
    MyEMail = CreateObject("CDONTS.NewMail")
    MyEMail.From = "[email protected]"
    MyEMail.To = "[email protected]"
    MyEMail.Subject = "Inserted Record"
    MyEMail.Body = MyEMailBody
    ' Send the email
    MyEMail.Send
    ' Get rid of the email on the server
    SET MyEMail = nothing
    %>
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Error while inserting records in sqlLite database

    Hi all
    I am building a hybrid web app in SMP using phonegap and html.
    I am trying to insert records in sql database but i get an error with an undefined error code
    Please see below :
    function openDatabaseFoo() {
      db = window.openDatabase(clientDBName, clientDBVersion, clientDBDisplayName, clientDBMaxSize);
    function createDBTables() {
      db.transaction(function(tx) {
      // Create mine table
      var fooCreate = 'CREATE TABLE IF NOT EXISTS ' + fooTable+ ' (empNo, empName)';
      tx.executeSql(fooCreate , [],
      function (tx, resultSet) {
                //success
      var msg = 'Sucessfully created';
      alert(msg);
      logSuccessMessage(msg);
                function (err) {
                //error code
                var msg = "Error creating table = " + err.code;
                alert(msg);
                logErrorMessage(msg);
    the creation of tables is happening properly because i am getting a success message in the alerts.
    I am getting the error when i am trying to insert records in the above table
    function insertDataTable(){
    db.transaction(function(tx) {
    var insertSql = 'INSERT INTO ' + fooTable + ' (empNo, empName) VALUES ("1603","baker")';
    tx.executeSql(insertSql, [],
      function (tx, resultSet) {
                //success
      var msg = 'Sucessful insertingdata.';
      alert(msg);
      logSuccessMessage(msg);
                function (err) {
                //error code
                var msg = "Error inserting data sql = " + insertSql + " Error code = " + err.code;
                alert(msg);
                logErrorMessage(msg);
    can some one please help.Also guide me where can i check the sqlLite database logs to see more about the error.
    I would really appreciate the help.I have been onto this since past few days now
    Regards
    Shweta

    What is err.code, or the value of msg when the error occurs?
    Thanks,
    Andrew.

  • I can no longer receive e-mail messages through my @mac/@me account. I can still send e-mail messages, though. I believe there may have been recent attempts to hack into my account. I have changed my password, but wonder how to start receiving mail again?

    I can no longer receive e-mail messages through my @mac/@me account, though I still seem to be able to send messages. I believe there may have been recent attempts to hack into my Mail account (my LinkedIn and Facebook accounts were both hacked three days ago and a scam/phishing message sent to my contacts, and I know there was at least an attempt made to hack into one of my e-mail accounts). I have already changed my Apple password, but how do I start receiving mail again?
    (And I should also say that I'm a little surprised there was no alert from Apple of suspicious activity on my account, if such was the case. Instead, when I logged into my account via Mobile Me three days ago I noticed that all messages in my inbox were gone as well as all of my contacts. I assume this was related to the current problem.)
    Thanks for all responses.

    The problem has been solved with the help of a MobileMe online counsellor. My MobileMe account had in fact been hacked into and the fraudster had been redirecting my e-mail messages to a phony account that he controlled. We took the forward off and reset all my passwords and security questions, which solved the immediate problem.
    Thx.

  • E-mail alerts

    My new 3G is great. However...
    My previous phone had a feature that the iPhone lacks. I used that feature to provide an alert that I wanted, and I'm wondering how to use features, app's, etc of the iPhone to recreate that alerting service.
    1. *My own Alert*
    2. *How I did it on my previous phone*
    3. *How to do it on the iPhone??*
    1. My own Alert
    I want to have an immediate telephone alert (of some kind) when an email arrives into my gmail account that is from a specific list of senders (like FROM: <SomeoneSpecial>@<MyGmailAcount>.com) or any e-mail to my business account ( <anyone>@<MyBusiness>.com ).
    2. How I did it on the previous phone
    I set up <MyBusiness>.com to forward any emails, and gmail to forward emails from my that someone special, to another e-mail address. That forwarding e-mail address was the e-mail address of the phone: <phone-number>@phone-provider.com (or something like that). Yes, those phones had an e-mail address and could directly receive e-mail. (I know that this is not the case for the iPhone.) The other phone would receive this e-mail as a "data" message, not an IM, so I didn't need or have text messaging on that phone. When it received such an e-mail, it would sound an alert, and I could see the e-mail on the phone.
    In this way, I was able to know immediately when I received a high-value e-mail at my other e-mail addresses. Note: I did not give out or use the phone's e-mail addr for anything else, so anything coming in would only be these high-value messages.
    3. *How to do it on the iPhone??*
    <here's where you give me your ideas!> Please note: I use the iPhone's gmail app, and don't want to lose that (in case you come up with a solution that somehow conflicts with that). Also note that I don't want to receive an alert whenever I receive any e-mail, just those high-value ones.
    All suggestions are welcome. Thanks for reading this long (and, I hope, clear) post.

    Assuming you're in the United States (you didn't specify in your profile), your phone's e-mail address is your 10 digit phone number @txt.att.net. For example, [email protected]
    E-mails to your phone's address are delivered as an SMS message, and therefore count against your monthly allotment of SMS messages.

  • How to send e-mail alert to the user job is successful or failed.

    Hi Experts,
    I have scheduled a job using DBMS_JOB Package; in this job I am calling a procedure.
    How can we send an e-mail(alert) to the user if the job is successful (or) job fails.
    If the job is successfully completed, then we have to send mail as “Job is completed successfully along with job name”.
    If the job fails we have to send email as “error message of the job along with job name”(why the job is failed).
    This alert should be sending automatically no manual intervention.
    Please help me.
         CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
            END LOOP;
         EXCEPTION
            WHEN OTHERS
            THEN
               ROLLBACK;
               DBMS_OUTPUT.PUT_LINE (
               'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
         END arc_procedure;
         /This is my job.
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
      ( job       => X
       ,what      => 'APPS.arc_procedure(1);'
       ,next_date => to_date('05/01/2013 00:00:00','dd/mm/yyyy hh24:mi:ss')
       ,interval  => 'TRUNC(SYSDATE+1)'
       ,no_parse  => FALSE
      SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    /Thanks in advance.

    Hi,
    I think you can do by creating mailing procedures and call it in the loop and outside the loop.
    There would be two procedure one in inside loop which will execute after successfull completion of the loop.
    Other would be in the exception block like i shown in the below code you have written;
    V_variable_1 you can use as a parameter for what is the error occured.
    like suppose your mailing procedure name is Status_email and Status_email_1.
    CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
    V_VARIABLE_1 NUMBER;
    V_VARIABLE_2 VARCHAR2(400);
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
                     STATUS_EMAIL;
            END LOOP;
         EXCEPTION OTHERS THEN
    V_VARIABLE_1 :=SQLCODE;
    V_VARIABLE_2 :=SQLERRM;
               ROLLBACK;
    STATUS_EMAIL_1(V_VARIABLE_1,V_VARIABLE_2);
         END arc_procedure;
         / You can refer to sample email procedure i have created for you.
    CREATE OR REPLACE PROCEDURE STATUS_EMAIL
    AS
       v_From       VARCHAR2(80) := 'EMAIL_ID';
       v_Recipient  VARCHAR2(80) := 'EMAIL_ID';
    --YOU CAN SEND EMAIL TO MORE THAT ONE USER SO YOU CAN USE LIKE BELOW VARIABLE....
       v_Recipienttt  VARCHAR2(80) := 'EMAIL_ID';
       v_Subject    VARCHAR2(80) := 'SUBJECT_FOR_THE_MAIL';
       v_Mail_Host  VARCHAR2(30) := 'MAIL_SERVERS_HOST_IP(SMTP_SERVER)';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipienttt);
    --OPEN DATA CONNNECTION
      UTL_SMTP.OPEN_DATA(v_mail_conn);
    --MAIL HEADER
      utl_smtp.write_DATA(v_Mail_Conn,'Date: '   || to_char(sysdate, 'DD-MON-YYYY hh:mi:ss AM') || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'From: '   || v_From || crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Subject: '|| v_Subject || ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'To: '     || v_Recipient || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Cc: '       || v_Recipienttt ||','|| crlf);
    --MAIL BODY
      utl_smtp.write_DATA(v_Mail_Conn,'MIME-Version: 1.0'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,' boundary="-----SECBOUND"'|| crlf ||crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: text/plain;'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
    utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Dear All, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'||'.' ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Regards, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'any_name '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_data(v_Mail_Conn, utl_tcp.CRLF ||'This mail is auto generated.');
      --CLOSE CONNECTION
      UTL_SMTP.CLOSE_DATA(v_mail_conn);
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /cheers..

  • Insert record and email

    Hello
    How do I insert a record with the image filename into a database, then send the data just entered as an email?
    I was able to do this before but now this new CS3 seems so complicated!
    I am unable to just use an insert record behavior then add form fields and change the insert or update recored behavior like before.
    Please can I be shown some actual working tutorials on this?
    This search function on this forum does not work as I tried to search for this exact statement "insert record and email" and no records appear.
    Cheers

    Ok, here is the entire page:
    <br />
    <br /><?php require_once('Connections/cnreviva.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_cnreviva = new KT_connection($cnreviva, $database_cnreviva);<br /><br />$editFormAction = $_SERVER['PHP_SELF'];<br />if (isset($_SERVER['QUERY_STRING'])) {<br />  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);<br />}<br /><br />// *** Mail form as Text format ***<br />if (isset($_POST["FX_sendForm"]) && $_POST["FX_sendForm"] == "frmupload") {<br />  $format = strtolower("Text");<br />  if ($format != "html") $format = "plain";<br />  $filefield = "uploadfile";<br />  $top = "\r\n";<br />  $body = "\r\n";<br />  $excludeArray = array("button","button_x","button_y","uploadfile","FX_sendForm","MM_insert","MM_update"); <br />  $i = 0;<br />  while ($i<sizeof($_POST)) {<br />    if (!in_array(key($_POST),$excludeArray)) {<br />      if (is_array(pos($_POST))) {<br />        $postVar = implode(", ", pos($_POST));<br />      } else {<br />        $postVar = pos($_POST);<br />      } <br />      $body .= strtoupper(key($_POST)) . ": " . stripslashes($postVar) . "\r\n";<br />    }<br />    $i++;<br />    Next($_POST);<br />  }  <br />  $bottom = "\r\n";<br />  $from = $_POST["email"];<br />  // set parameters<br />  $recipient = "[email protected]";<br />  $subject = "Test";<br />  $message = $top . $body . $bottom;<br />  // set extra parameters<br />  $headers = "From:" . $from . "\r\n";<br />  $headers .= "Cc:\r\n";<br />  $headers .= "Bcc:\r\n";<br />  require_once("FXInc/FX_mailForm_php.inc");<br />  // send all<br />  mail($recipient, $subject, $message, $headers);<br />  $body = urlencode(str_replace("\r\n", "<br>", $body));<br />  $redirect = "thankyou.php";<br />  if ($redirect) header("Location: " . $redirect);<br />}<br /><br />// Make an insert transaction instance<br />$ins_tblfeedback = new tNG_insert($conn_cnreviva);<br />$tNGs->addTransaction($ins_tblfeedback);<br />// Register triggers<br />$ins_tblfeedback->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_tblfeedback->registerTrigger("END", "Trigger_Default_Redirect", 99, "thankyou.php");<br />// Add columns<br />$ins_tblfeedback->setTable("tblfeedback");<br />$ins_tblfeedback->addColumn("name", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("email", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("city", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("country", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("shoe_size", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("feedback", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("activate", "STRING_TYPE", "POST", "", "N");<br />$ins_tblfeedback->addColumn("photo", "FILE_TYPE", "FILES", "uploadfile", "");<br />$ins_tblfeedback->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rstblfeedback = $tNGs->getRecordset("tblfeedback");<br />$row_rstblfeedback = mysql_fetch_assoc($rstblfeedback);<br />$totalRows_rstblfeedback = mysql_num_rows($rstblfeedback);<br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br />
    <br />
    <br />
    <br />
    <form action="%3C?php%20echo%20$editFormAction;%20?%3E" method="post" name="frmupload" id="frmupload">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table width="300" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td>Name
    <br />
    <br />
    <input type="text" name="name" id="name" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Email
    <br />
    <br />
    <input type="text" name="email" id="email" length="20" value="" /></td>
    </tr>
    <tr>
    <td>City
    <br />
    <br />
    <input type="text" name="city" id="city" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Country
    <br />
    <br />
    <input type="text" name="country" id="country" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Image
    <br />
    <br />
    <input name="uploadfile" type="file" id="uploadfile" /></td>
    </tr>
    <tr>
    <td>&#160;</td>
    </tr>
    <tr>
    <td>
    <?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <input type="submit" name="button" id="button" value="Submit" />
    </td>
    </tr>
    </table>
    <br />
    <input type="hidden" name="FX_sendForm" value="frmupload" />
    <br /></form>
    <br />
    <p>&#160;</p>
    <br />
    <br />

  • Sync issues with Google Calendar and e-mail alerts

    Hello,
    I'm experiencing a lot of problems with iCal while I'm trying to sync it with Google Calendar. I have correctly inserted my Google account information into iCal, but:
    when I create a new event and I disable the e-mail alert and save it, it automatically turns on the e-mail alert! Is there a way to disable by default all alerts? I have already tried to go to Settings - Advanced and select “Disable all alerts” with no result;
    all the events I create into iCal are correctly synced with Google Calendar and I can correctly read them on the web app, but in my android device they don't have the time information (they are listed as all-day events)

    GooSync would do the trick - http://www.goosync.com/
    Plz be aware that Goosync nor Google Contacts supports all field from your phone so it is not an 100% backup unfortunately
    JoranG

Maybe you are looking for

  • Send html email with image embedded

    Hi Guys, I want send an email using class CL_BCS. Can someone please help me to tell me how can we send the email with image embedded in the body? The image is stored in the mime repository and was uploaded through se78. I have searched online but am

  • How can i cfp and nuke the device ??

    how can i cfp and nuke the device ?? my Z10 stl100-1 have a bb10-0015 error and i can't use link to reload it And more than one way can't fix this error autoloader can't connect to the device just ask me for my password  some one tell my the way to f

  • Moving volumes between servers

    First, I'm new at this, so allow for my ignorance. Second, we are ARCHIVING data on StorEdge L3500s and sometime in the next 10 months intend to upgrade to L7000s. The issue: we have two L3500s on different LANs. ServerA has volumes labeled from AWR1

  • Adding of screen fields

    hi experts, I need to add some custom screen fields in the standard transaction code mm41. I am unable to locate the screen exit for same . Through which i can add fields on the transaction code. could u please give ur suggestions on same.

  • Simple Java

    I tried compiling, no errors whatsoever, but the result is not the one I expected. Any thoughts? public class LeapYears public static void main(String[] args) System.out.println("Input Year"); int Year = IO.readInt(); int NotLeap= 365; int Leap= 366;