A single button; Two jobs. Submission of data and e-mail at the same time.

I have a FORM on which the current action validates the form and submit the text to a MYSQL database:

< form action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" onSubmit = "MM_validateForm ('ck_firstname',", "R',"ck_lastname', ", 'R', 'ck_email3',", "come from mail"); " return document. MM_returnValue">

I wish that submitting to warn me, by email, that the entry on the database was created.  I can do it from the same page or is happening from the page, as a result. If it is necessary to move to another page to send email I would like this page to automatically redirect to the page of the FORM, so that the page emailling is invisible. Possible?

Also, I should move the current action of PHP to the next page, so that the button on the FORM simply publishes on the other page that realizes both the presentation of the database and the emailling?

Advice or code received with gratitude.

I wish that submitting to warn me, by email, that the entry on the database was created.  I can do it from the same page

Yes. It is to modify the code generated by Dreamweaver, so the server behavior insert record ceases to be editable through the Dreamweaver dialog box. All that is necessary is to add the e-mail script after the record has been inserted in the database. You can add the script physically in the same page or use include a PHP. Remember that PHP scripts are processed from top down. Keep everything in the right order, and it's a piece of cake.

Tags: Dreamweaver

Similar Questions

  • the two versions of Muse (2015.0 and 2015.1) at the same time

    Hello dear Musers,

    Is it possible to install both versions (2015.0 AND 2015.1) at the same time?

    I manage several sites and I want to be able to update regularly (stable and bug release 2015.0) while slowly, tests and moving them to reagent (2015.1)? Also to start playing with the possibilities of delicate design in Muse.

    I also have a site with complex effects of scrolling that should stay that way. I can't run the risk of not working after the update... at least I have a replacement with Animations of EDGE...

    Thanks for the help.

    J. Vallejo

    If you an active member of Muse and can accept the terms of the non-disclosure agreement, my recommendation would be to join the beta program of Muse at http://museprerelease.com. At the moment the latest preliminary 2015.1 is always displayed and it is basically identical to the retail version, but with a splash screen different. In general, it is deleted shortly after the production version is released, but has not yet happened.

    The preliminary version installs the construction of shipping along the coast. The two have no overlap, other than the fact by double clicking a .muse file is a bit of a gamble in terms of what version of Muse, the operating system decides to launch.

  • I want to open two different pdf documents and view them at the same time so I can read about everything by watching the other document.  I use Acrobat DC and whenever I open a document it creates a tab and I can only examine a document at a time.

    I want to open two different pdf documents and view them at the same time so I can read a whole watching the other document.  I use Acrobat DC and whenever I open a document, it creates a tab and I can only examine a document at a time. Is it possible to display two or more documents without having to toggle tabs?

    Don't think that will work, but you can drag the tab to a new window. Each window can have a set of tabs.

  • Can a single USRP 2920 tansmit (Tx) and receive (Rx) at the same time?

    I know a USRP can be a transmitter and a receiver, but a single unit can send and receive at the same time?  The application in question involves the sending of an RF signal to a label of RFID and followed by the response of the tag with a single reading USRP.  I heard that the link between the channels can cause significant on because bleeding that is not insulation between the tracks, but could not find an example showing simultaneous Tx and Rx.  Is there an example or documentation that I'm missing?

    Thank you!

    Kristen Heck

    Academic ESF - middle of Southeast

    Hello Kristen,

    The USRP can send and receive at the same time.  You have because there are bleed more because of the lack of isolation, but documentation of the USRP is always formed and includes no information about this.  Here are the 2 screws that allows you to make simultaneous TX/RX.  Just to set the IP address in the two screws to the IP address of your USRP and run them.  You may need to change the rate of IQ and the frequencies of your application, but this very basic example should be a good starting point.

    Let me know if you have any other questions, I'd be happy to help you.

  • * Creating Cloud * [can I use two different applications of cloud on different computers at the same time for example Photoshop on one and on another InDesign?]

    So I know that you can have creative cloud up to two computer and its not of platform specific, so you can have it on a Mac and the Windows platform at the same time. BUUUT I know that you can not use them simutaniously, but which still apply to the when im I need to work on photoshop on only one computer and indesign on another who would always use them at the same time so he would evict me? or can be used on two different programs at the same time?

    Always there was confusion on this issue.

    Adobe said yes in 2012 and 2014.

    Running different applications - 2 computers, a single license

    Contradictory information on the simultaneous use of CC.

    Don't know the current position of Adobe.

  • Two computers of CC EULA 2.1.3 "at the same time"

    In CC EULA 2.1.3 What does the term 'used at the same time' mean?  The licensing system keep track of when I open and close THE (for example) so that when I put my office to sleep without closing the application, it is always considered 'in service '?

    If you have 2 single-user licenses (that is to say, you bought cc twice), you must have two different adobe ID code do you have?  If so, you should be able to activate and use it on 4 computers.

    Anyway, with 1 single user license, you are allowed 2 simultaneous activations.  When you try to use a 3rd, offers you the opportunity to sign out of your other two activations for your 3rd computer and then connect on this 3rd computer (making it the only active computer with cc).

    If you don't want to log both, you must connect on one of two computers activated (from one of these two computers).

  • How to run a window of data acquisition and another pane at the same time

    Hello

    I have a main window for data acquisition and in front panel there are four Sub Vi. When the main window of data acquisition is running and at the same time if I run the Subvi - main window stops data acquisition and the secondary window starts to run. But I want to launch the window of acquisition of primary data and the pane at the same time. Please give me a solution for this...

    Thanking in advance.

    Nikhil

    Hi Nikhil,

    My explanation has answered your question. Take a look at the image as an attachment. Let us know if you have any other questions.

  • Two Apple TV - remote controls works with both at the same time

    Just bought the Apple TV 4, this means that I moved my old version 3 Apple TV in the room, when I use a distance the two Apple TV now respond. How can I connect the remote control for the Apple TV right, to keep them from harm?

    Try this:

    Désapparier money ATV3 the remote control by pressing menu and left for 6 seconds.

    Block the front ATV3 and remote peer with the ATV4 the silver medal by pressing menu and right for 5 seconds.

    Block the front ATV and press menu and the central selection button for 5 seconds

    Unlock the ATV4 and check that it does not meet the silver remote.

    Block the ATV4 and unblock the pair by pressing menu and right for 5 seconds and ATV3.

    Check the ATV3 now responds.

    Remove the block of the ATV4.

    A beer...

  • Enter data into both fields at the same time

    This seems like it should be simple, but I can't find anything about it. I am creating a pdf form to fill out, and I need the data in a text field to appear in another text field.

    Example: The form has two sections, one for the applicant to fill in for the office only. There is a field for "Address of the project" in the two sections. The customer wants the address entered in the first field to be automatically enrolled in the second address field.

    How to make that happen?

    If you give the two fields of the same name, they will automatically have the same value. But if you want the second field you can edit independently the first address field, you can use the custom for the first field validation script. If the second field is empty, it will set the second value of the field to the same as the first.

    // Custom Validate script for text field
    (function () {
    
        // Get a reference to the second field
        var f = getField("ProjectAddress2");
    
        // Set the second address field to this field's value, if it's blank
        if (!f.valueAsString) f.value = event.value;
    
    })();
    

    Replace "ProjectAddress2" with the actual name of the field.

  • How to display data on the screen and save the data in a file at the same time?

    The code can display acceleration on the screen of the playbook.

    But, when fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ") runs, debug displays no source available.

    ??

    Does anyone know how to solve the problem, which writes data to a file?

    The code is below.

    /*
    * Copyright (c) 2011 Research In Motion Limited.
    *
    Licensed under the Apache License, Version 2.0 (the "license");
    * You may not use this file except in compliance with the license.
    * You can get a copy of the license at
    *
    www.Apache.org/licenses/license-2.0
    *
    * Unless required by the applicable law or agreement written, software
    * distributed under the license is distributed on an "AS IS" BASIS.
    * WITHOUT WARRANTIES OR CONDITIONS of ANY KIND, express or implied.
    * See the license for the specific language governing permissions and
    * limitations under the license.
    */

    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include

    /**
    The milliseconds between the accelerometer readings. It's the same thing
    * rate in which the accelerometer data will be updated
    * material. The update of material rate is below to help
    * accelerometer_set_update_frequency (FREQ_40_HZ).
    */
    public static const int ACCELEROMETER_MAX_POLL_INTERVAL = 25;

    public static screen_context_t screen_ctx;
    public static screen_window_t screen_win;
    dialog_instance_t main_dialog = 0;

    paused int = 0;

    The forces of the accelerometer
    float force_x, force_y, force_z;

    file elements
    int _logcounter = 0;
    FullName Char [256];
    FILE * f;

    /**
    * Use the PID to set the id of Group window.
    */
    public static char
    get_window_group_id()
    {
    public static char s_window_group_id [16] = "";
    If (s_window_group_id [0] == '\0') {}
    snprintf (s_window_group_id, sizeof (s_window_group_id), "%d", getpid());
    }
    Return s_window_group_id;
    }

    /**
    * Set up a basic screen, so that the browser will be
    * Send window state events when the State of the window changes.
    *
    * @return @c EXIT_SUCCESS or EXIT_FAILURE @c
    */
    public static int
    setup_screen()
    {
    If (screen_create_context (& screen_ctx, SCREEN_APPLICATION_CONTEXT)! = 0) {}
    Return EXIT_FAILURE;
    }
    If (screen_create_window (& screen_win, screen_ctx)! = 0) {}
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }
    use of int = SCREEN_USAGE_NATIVE;
    If (screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_USAGE, & use)! = 0) goto fail;
    If (screen_create_window_buffers (screen_win, 1)! = 0) goto fail;
    If (screen_create_window_group (screen_win, get_window_group_id())! = 0) goto fail;
    buff screen_buffer_t;
    If (screen_get_window_property_pv (screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void *) & buff)! = 0) goto fail;
    buffer_size int [2];
    If (screen_get_buffer_property_iv (buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size)! = 0) goto fail;
    int attributes [1] = {SCREEN_BLIT_END};
    If (screen_fill (screen_ctx, chamois, attributes)! = 0) goto fail;
    int dirty_rects [4] = {0, 0, buffer_size [0], buffer_size [1]};
    If (screen_post_window (screen_win, buff, 1, (const int *) dirty_rects, 0)! = 0) goto fail;
    Return EXIT_SUCCESS;
    in case of failure:
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }

    /**
    * Rotates the screen at the specified angle.
    *
    @param angle angle to rotate the screen.  Must be 0, 90, 180 or 270.
    *
    * @return @c EXIT_SUCCESS on success, to another @c EXIT_FAILURE
    */
    public static int
    rotate_screen (int angle)
    {
    If ((angle! = 0) & (angle! = 90) & (angle! = 180) & (angle! = 270)) {}
    fprintf (stderr, "Invalid Angle\n");
    Return EXIT_FAILURE;
    }
    int rc;
    int rotation;
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, & rotation);
    If (rc! = 0) {}
    fprintf (stderr, "error getting the window of the screen rotation: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int size [2];
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error getting size memory buffer window screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int temp;
    switch (angle - rotation) {}
    case - 270:
    case - 90:
    decision 90:
    case 270:
    Temp = size [0];
    size [0] = size [1];
    size [1] = temp;
    break;
    by default:
    break;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, &angle);)
    If (rc! = 0) {}
    fprintf (stderr, "screen rotation window for parameter error: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SOURCE_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window buffer size of the screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    Return EXIT_SUCCESS;
    }

    /**
    To manage an event of navigator.
    *
    * @return @c the value true if the application should shut down, another fake.
    */
    public static bool
    handle_navigator_event(bps_event_t *Event)
    {
    bool should_exit = false;
    switch (bps_event_get_code (event)) {}
    case NAVIGATOR_EXIT:
    should_exit = true;
    break;
    case NAVIGATOR_ORIENTATION_CHECK:
    navigator_orientation_check_response (event, true);
    break;
    case NAVIGATOR_ORIENTATION:
    {
    int angle = navigator_event_get_orientation_angle (event);
    If (rotate_screen (angle) == EXIT_FAILURE) {}
    should_exit = true;
    }
    navigator_done_orientation (Event);
    break;
    }
    }
    Return should_exit;
    }
    /**
    * Display an alert dialog box that contains the location data.
    */
    public static void
    show_main_dialog()
    {
    If {(main_dialog)
    return;
    }
    dialog_create_alert(&main_dialog);
    dialog_set_alert_message_text (main_dialog, "Acceleration to first fix");
    dialog_set_size (main_dialog, DIALOG_SIZE_FULL);
    dialog_set_group_id (main_dialog, get_window_group_id());
    dialog_set_cancel_required (main_dialog, true);
    dialog_show (main_dialog);
    }

    /**
    * Displays geolocation data in the main dialog box.
    */
    public static void
    display_acceleration_data (float force_x, float force_y, float force_z) {}
    char buf [1024];
    snprintf (buf, sizeof buf,
    "\tX: m\n % 7.3.f.
    "\tY: m\n % 7.3.f.
    "\tZ: m\n % 7.3.f."
    force_x, force_y, force_z);
    dialog_set_alert_message_text (main_dialog, buf);
    dialog_update (main_dialog);
    }

    void createafile() {}
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    {if(f==null)}
    file does not exist
    f = fopen (fullname, "r");
    {while(f!=null)}
    file exists
    fclose (f);
    ++ _logcounter;
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    f = fopen (fullname, "r");
    }
    }
    }

    write data to the file
    void writedataintofile() {}
    f = fopen (fullname, "w");
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    fclose (f);
    }

    /**
    * A sample application shows the native APIs of BlackBerry for accelerometer.
    * The example initializes and reads the accelerometer periodically until one
    * NAVIGATOR_EXIT event is received.
    Enforcement also tuned to changes status window in the browser so that
    * It can stop reading the accelerometer when the application is no longer visible.
    */
    int main (int argc, char * argv {})
    bool exit_application = false;
    /*
    * Until we can listen for events from the BlackBerry Tablet OS platform
    * services, we need to initialize the BPS infrastructure
    */
    bps_initialize();
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event). This allows to
    * us to clean up resources in the application.
    */
    navigator_request_events (0);
    dialog_request_events (0);
    /*
    * Initialize the screen so that the Windows Id is correctly set, to allow
    * dialogs to display.
    */
    If (setup_screen()! = EXIT_SUCCESS) {}
    fprintf (stderr, "Failed to initialize the screen.");
    Exit (-1);
    }
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    *
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event).
    *
    * We ask events of dialogue so that we can be notified when the service of dialogue
    * answers to our queries/requests.
    */
    If (BPS_SUCCESS! = navigator_request_events (0)) {}
    fprintf (stderr, "error asking navigator events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    If (BPS_SUCCESS! = dialog_request_events (0)) {}
    fprintf (stderr, "error asking dialog events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    /*
    * Create and display the dialog box that displays the data from the accelerometer.
    */
    show_main_dialog();
    /*
    Prior to initialize the accelerometer function, we must ensure the unit
    * takes in charge
    */
    If (sensor_is_supported (SENSOR_TYPE_ACCELEROMETER)) {}
    /*
    * If the device does not support the accelerometer so warn the user,.
    * clean in and out
    */
    public static const int SENSOR_RATE = 40;
    sensor_set_rate (SENSOR_TYPE_ACCELEROMETER, SENSOR_RATE);
    sensor_request_events (SENSOR_TYPE_ACCELEROMETER);

    }
    /*
    * Initialize the accelerometer setting the rate at which the
    * accelerometer values will be updated material
    */
    accelerometer_set_update_frequency (FREQ_40_HZ);

    /*
    Treat browser events and take the accelerometer readings periodically
    * until we receive a NAVIGATOR_EXIT event.
    */
    createafile();
    f = fopen (fullname, "w");

    While (! exit_application) {}
    /*
    * By setting the timeout to bps_get_event to ACCELEROMETER_MAX_POLL_INTERVAL,
    * We assign the maximum duration (in millis) who will wait before
    * release so that we can take a reading of the accelerometer.
    */
    bps_event_t * event = NULL;
    bps_get_event (& event, ACCELEROMETER_MAX_POLL_INTERVAL);

    If {(event)
    If (bps_event_get_domain (event) is {sensor_get_domain()})
    /*
    * We woke up. See if we are in the paused state. If not,
    take a reading of the accelerometer
    */
    If (! pause) {}
    sensor_event_get_xyz (event, & force_x, & force_y, & force_z);
    display_acceleration_data (force_x, force_y, force_z);
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    } //paused
    }
    / * If this is an event of the dialog box, determine the response code and handle
    * the event accordingly.
    */
    {ElseIf (bps_event_get_domain (event) == dialog_get_domain() {)}
    ;
    }
    /*
    * If it's a NAVIGATOR_EXIT event and then set the exit_application
    * indicator so that the application stops processing events, clean and
    * output.
    */
    {ElseIf (bps_event_get_domain (event) == navigator_get_domain() {)}
    exit_application = handle_navigator_event (event);
    }
    } //if event
    } //while
    /*
    * Destroy the dialog box, if it exists.
    */
    If {(main_dialog)
    dialog_destroy (main_dialog);
    }

    fclose (f);

    /*
    * Clean the infrastructure bps and output
    */
    sensor_stop_events (SENSOR_TYPE_ACCELEROMETER);
    bps_shutdown();
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    return 0;
    } //main

    Hello

    As I said on your other thread:

    In order to write in the shared directory/documents, your application should request action "access_shared" and it must be granted by the user. Make sure you have

    access_shared

    in your bar - descriptor.xml.

    Also note that the shared documents folder may not be the best place to write the application log data. There is one connects / in the sandbox to this effect, or the application directory data / directory if the information should be persisted. The documents/shared/folder is designed for documents that the user creates or interacts with.

    HTH,

    Christian

  • HP-S5-1414: use two onboard video with add on video PCIe at the same time

    I have a HP S5-1414 (HP Pavilion Slimline). It has 2 DVI connectors on board and a PCIe x 16 slot with a Gigabyte R9 270 X Video card. With a lot of motherboards with onboard video you can now launch the edge and a discrete video card simultaneously. I tried to do this on this system without success. The question is this. Is there a way use Board on board with separate video, at the same time?

    Jim Hutto
    I do not work for HP.
    I am a computer technician and a passion for computing with more than 32 years of computer repair and networking experience

    Hello

    Space cleary wrote:

    Integrated Intel Graphics Media Accelerator HD graphics
    * Built-in video is not available if you have installed a graphics card or an Intel processor ending with 'P'.

  • How to launch two executable files (excel file & a .exe file) at the same time using VB Script?

    Hello

    I need vb Script code to run exe files at the same time.

    I hope someone will help me!

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Can I use Lightroom on my mac and my pc at the same time with a single subscription?

    Hi all

    for five months now, I have a subscription to creative cloud for Lightroom and Photoshop. So far, I used just on my PC. Now I have bought me a MAC and want to install Lightroom on MAC either. Do I need a second subscription for MAC or can I use my subscription on MAC and PC at the same time?

    thx for your comments

    If you ask if you can run the software subscription on both machines at the same time, the answer is no.  Your license you can only use one of the facilities at any given time.

    If you ask that if you have the software installed and that can be used on both machines so the answer is Yes... just can not both machines in use, software subscription running at the same time.

  • I can't get two cards USB worked at the same time

    I use Labivew 8.6 to program an application using NI UBB-9211 and USB-6211 connection to two USB ports on my PC in order to measure the temperature and pressure (voltage) at the same time. Also, I need to generate two AOs of USB-6211 to drive my engines. I tested two cards, they are OK. But when I program them together, I get only 9211 worked, an error poped to acquisition of data USB-6211. Could you please help me on this? advice or examples of VI / would be greatly appreciated. Thank you in advance!

    Hi navistar.

    It seems that you should be able to do what you are trying to accomplish. Can you post some information about the error you receive? You use the lower level Assistant DAQ or DAQmx screws in your application? You can post a screenshot of your code where it is merged together and easier troubleshooting. You use any trigger of your application? We have examples in the example Finder (help > find examples) under Hardware Input and Output > DAQmx. These examples are a good place to start to build your application. If you already have the code work for each instrument and you have problems combining them, it might be easier to work with where you are at as opposed to leaving it everywhere.

  • Read data series and detect the break in series at the same time

    I need to communicate with a serial device that sends messages back, but also sends a break, break, break, break series combo that I need to listen to. I've never worked with before series breaks but the only VI I found which seems to detect pending VISA on event VI with the series Break parameter. I'm not sure that understand how I could detect a break in the series, but also to be reading and writing messages at the same time in the meantime. Isn't this possible?

    If you use multiple loops, I think you can do.  You use 1 loop to check to see if there is data and 1 loop looking for breaks series.  Then use queues, authors of notifications or events to anyone who needs to know what you have experienced.

Maybe you are looking for