Add a confirmation message

Hi-

I created a simple form and after that the user clicks on the button submit, I want to display a brief confirmation message (for example, "presented report").

I searched in the discussion forums, but had no chance. I have attached the code html and php below. Thank you!

HTML - CODE

< body >

Add a record to the < h3 > < / h3 >

< do action = "add_record.php" method = "post" name = "Add record" > "
< p > title:
< input name = "book_title" type = "text" value = "" size = "125" / > "
< /p >
< p > author: < input name = "author" type = "text" / > < / p >
< p > year: < input name = "year" type = "text" / > < / p >
< p > Publisher: < input name = "Publisher" type = "text" / > < / p >
< p > available in ebook? : < select name = "ebook" >
< option value = "Yes" > Yes < / option >
< option value = "No" > n < / option >
< / select > < / p >
< p > Amazon Rank: < input name = "amazon_rank" type = "text" / > < / p >
< p > < input name = "Submit" type = "submit" value = "Submit" / > < / p >
< / make >


< / body >

PHP - CODE

<? PHP

include("includes/connect_info.php");

$connection = mysql_connect ($hostname, $mysql_login, $mysql_password);
$dbs = @mysql_select_db ($database, $connection);


$book_title = mysql_real_escape_string($_POST["book_title"]);
$author = mysql_real_escape_string($_POST["author"]);
$year = mysql_real_escape_string($_POST["year"]);
$publisher = mysql_real_escape_string($_POST["publisher"]);
$ebook = mysql_real_escape_string($_POST["ebook"]);
$amazon_rank = mysql_real_escape_string($_POST["amazon_rank"]);


$insert = mysql_query ("INSERT INTO mydatabase.mytable (book_title, author, year, Publisher, ebook, amazon_rank) VALUES ('$book_title', '$author', '$year', '$publisher', '$ebook', '$amazon_rank') '");
mysql_close();
? >

This code in its present form seems only lead to deadlock.  Why not just create a 'confirmation' page and redirect the user to this page after successful using php header: http://php.net/manual/en/function.header.php

Tags: Dreamweaver

Similar Questions

  • When you try to FolderLink via Box, I get a confirmation message that the file is downloaded, but nothing happens and after an hour it is still downloading.

    When you try to FolderLink via Box, I get a confirmation message that downloads the file weeding, but the boy until the wheel turns and turns and after an hour or two it is still downloading. At this point I give up. I can download OK directly to their Web site box. He used to work a few months ago. I'm on Thunderbird V 38.2.0

    Instead, you can use Dropbox as FolderLink provider.
    Install this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/dropbox-for-FileLink/

  • How to create a confirmation message

    Hello

    Can you tell me what are the steps to create a confirmation message when the user clicks a specific link!

    Thank you

    If you add that to a button, create you a 'Redirecrt to the URL"button and add it to the"URL target ":

    javascript:apex.confirm('Are you sure you want to delete this record?', 'DELETE');
    

    If you use a link then you can do it like this:

    <a href="#" onclick="apex.confirm('Are you sure you want to delete this record?', 'DELETE')">your link
    

    Such a question was answered dozens of times in this forum. A simple search would lead you to several solutions. Use this forum to search before posting your questions.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Personalize the confirmation message after purchase

    How to personalize the confirmation message that users get after making a purchase on the site?

    Thank you

    Lily

    Use the Layouts / online shop / reception of the order page.

    If you use quotes use the quote-receipt page.

    What are the paths for SFTP options (Dreamweaver), or a development tool.

    Hope that makes sense. I added a screenshot for help.

  • Confirmation message is displayed when you click on the button

    We need display a confirmation message when you click a button to notify the user the changes are successful, allow the user to click on 'ok', and then on the home page. The current function uses .setForwardURL to redirect the page to the "Main" page after clicking on a button.

    Here is the code of the application currently being used by the controller

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);

    OAApplicationModule contactam = (webBean) pageContext.getApplicationModule;

    If (pageContext.getParameter ("saveContact")! = null)
    {

    contactam.invokeMethod ("saveContact");

    () pageContext.setForwardURL
    'OA.jsp?page=/csxxx/oracle/apps/ak/contact/webui/ContactMainPG '.
    null
    OAWebBeanConstants.KEEP_MENU_CONTEXT
    null
    null
    true
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    OAWebBeanConstants.IGNORE_MESSAGES);

    }

    Hello

    You can display the message after contactam.invokeMethod ("saveContact") as shown below:

    If (pageContext.getParameter ("saveContact")! = null)
    {
    contactam.invokeMethod ("saveContact");
    throw new OAException ("Data has been saved.", OAException.CONFIRMATION);
    }

    Sushant-

  • I get two boxes for each user action confirmation message.

    I have surgery assign task with two Actions of the user, to appoint and release. I checked the box for require a confirmation message box and now I get two boxes of message for each action. Any ideas?

    I present to you a PDF flattened in the workspace and this might have caused the problem. The problem has been resolved by:

    In the data section & presentation of the special operation assign under player posting, see submit by the reader, to submit in PDF format

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Confirmation message

    Hello
    It's the second question when validate the form using Commit_Form;

    I don't get this FRM 40405 no change to be applied.

    but before applying commit_form; I check: System.Form_Status I found the status = 'change '.

    Kind regards

    you could put a ONE-MESSAGE-trigger in each form that intercepts the message associated with this confirmation message FRM.

  • Starting point for workspace confirmation message

    Hello

    Is it possible to have a confirmation message to the workspace of starting point.

    conf_mesg.png

    I want this message box at the initial stage after the starting point to submit the form of the workspace to the workspace.

    Thank you and best regards,

    Chalukya.

    "Not possible until you customize the workspace!"

    Nith

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

  • Last Confirmation Message

    I'm having a problem with oracle forms 6i, the problem is that when I changed something in my form and exit the screen through the X button in the form, it asks confirmation if I want to save the changes to my form. How can I disable this confirmation message when I close my form. Is there a trigger to validate, or better yet what trigger finally before or out of my form?

    Hello
    Write the code to trigger KEY-OUTPUT at the level of the shape or the button that closes the form.

    exit_form(no_validate);
    

    Please indicate if it helps you or correct

    Kind regards
    Danish

  • How to get the confirmation message when I press the button Delete?

    Hai,
    I want to display a confirmation popup before you delete the line.

    I created an Entiity object and a view to EmpTable... object and drag and drop the button Delete.
    I want to show a confirmation message that "you want to remove?
    If the user clicks OK, the data must be deleted... or not... I'm using JDeveloper 11 g

    You can use a popup for this. Put a component showpopuupbehavior on the delete button to display a popup.
    Article 13 of the web developer guide here shows how proceed.

    Timo

  • How to display a confirmation message before deleting

    Hello

    I have a request and I want to display a confirmation message before people delete a record.

    The button on page 42 is number 90 'delete this card '. This is a shipment as 'DELETE_ALL '. I saw that the buttons remove are redirects to the url javascript:confirmDelete(htmldb_delete_message,'DELETE'). but I can't use it because my button is not a redirect, but a shipment.

    http://Apex.Oracle.com/pls/OTN/f?p=4550
    Workaspace: ESPACE2008
    User: guest
    password: acdc2009
    Name of the application's activities

    Thank you for your kind replies.

    Christian

    Hi Christian.

    You can use the same logic for your own processing logic.

    the syntax is...

    javascript:confirmDelete(htmldb_delete_message,'YOUR_PROCESS_NAME');
    

    Replace "YOUR_PROCESS_NAME" with the name of your page process that manages the deletion block. Don't for get the quotes either side of your process name.

    I hope this helps.

    Simon

  • Customize the Apex 5 UT deletion confirmation message

    Hello

    I want to customize javascript:apex.confirm (htmldb_delete_message, 'DELETE'); at their Summit, 5 using the new (and fantastic universal theme)

    Is what I want to achieve instead of display the standard popup window

    ScreenShot054.gif

    is to show an alert area (with 2 buttons Ok - cancel of course)

    ScreenShot055.gif

    but I don't know how to do this.

    Any help will be appreciated

    Thank you

    Jean-Yves

    Hello

    Happy new year too.

    1 created a new 'Modal' through the normal page Wizard page.

    2. has created 2 regions

    a. static HTML area with custom and model of "Alert" message "are you sure you want to perform this action? ' in the content body

    b. region model static HTML 'Button container' and «Dialogue Footer» position

    3. Add 2 buttons button container region

    a. OK model Submit with button as "Hot".

    b. cancel defined by the dynamic Action

    4. create a dynamic Action on the page during the click on the Cancel button with action as "Cancel dialog box.

    5. create a page submit the process as "Dialog closed" and conditions button 'OK '.

    On the call Page:

    6. create a dynamic action "Dialog box closed" and perform actions you want to perform, I gave an alert here.

    Of course, this is just to test and can be made generic to use anywhere.

    I hope this helps.

    Sunil Bhatia

  • Add ringtones to Messages on my iMac

    Is it possible to add text tones to the list of Messages on the iMac as you can do on your mobile devices?

    Hello

    Yes.

    20:42 Sunday; September 18, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

Maybe you are looking for

  • Satellite T110-107 - what processors can it take?

    I am looking to increase the processing power of my T110-107, and I was wondering if it could take a different processor, and what are the processors should be?

  • How can I restore the dialog box warning for the opening of a secure site?

    I want to restore the warning box that tells me when I'm entering a secure site. Who warns when I leave a secure site works very well. I have probably not checked the field at one time or another, but I can't find how to bring it back.

  • Palm Zire 71 and Windows 7 - device is not recognized

    The computer does not recognize the device. It's like the USB port isn't there.  Nothing wrong with the port or connections.  Is this a compatibility issue with Windows 7 and the Palm Zire 71?

  • BlackBerry blackBerry 10 protect Question

    I would like to know if I lost my blackberry and then the person who found my phone, tried to enter the password 10 times, the device will be wiped off and then it may enter a new email, I find always my phone using blackberry protect even if the ema

  • BlackBerry Smartphones Can I download a CAD (DWG) file

    Hi all, this is my second post. I recently received an email with an attachment on my 8300 autocad (dwg, 800 KB). I tried to download, but there is no menu item to download (I use bis, if that helps). Is it possible to download attachments, or show o