Problem with double buttons on a form

Hello-

I have a single form with two buttons, currently named "Button1" and "Button2". The two buttons guide DW/php code by default to update the records in the database (in MySQL), but I want the page redirect after the update to be determined by which button was pushed.

I use $_GET ['ButtonName"] direct action based on which button was used to send the form. Unfortunately, I can't redirect the page where I want.

The code I use is:

=======
If (isset($_GET['Button1'])) {}
$updateGoTo = "edit_onepage.php";
} else {}
$updateGoTo = 'account.php ';
}
========

If the user sends using Button1, I want that they passed to the 'edit_onepage.php '. If he submits using Button2, I want him sent to the 'account.php '. Unfortunately, no matter how I play with this code, the form is always to send 'account.php', whatever the button is pressed.

Anyone can see what I'm missing here? Thanks in advance for your advice.

Oops! Found my mistake. It works if I retrieve information button with ' $_POST ', not ' $_GET '. I'll leave this place in case someone else has a similar problem.

Tags: Dreamweaver

Similar Questions

  • Problem with double-button Flash CS4... help!

    I'm relatively new to Flash... I'm trying to understand this.

    I button1_btn on a frame at the beginning of this animation, and on this image I add script:

    button1_btn.addEventListener (MouseEvent.CLICK, showimage1);

    function showimage1(event:MouseEvent):void {}

    gotoAndPlay("image1");

    }

    It works fine, but I also have other buttons that ends up taking a different picture where this button is not on.  So I add to the scene in this framework and assume it will be gotoAndPlay("image1") again when you click it, but when I test the movie and click the image later, nothing happens.

    I tried maybe add the original script in that frame as well, but then I test and it said I have duplicated the script and does not work.

    Why the original script works for this button, no matter where and when it manifests?  It's the same key basically, no?

    Help, please!

    Any instance of an element that you add must be in the presence of some code works with it.  So if you add a new instance in a new keyframe, it doesn't have that the original code is awarded because this code has been assigned a time where this code and the original instance is back.

    A way around this is to use the visible property to hide the button when you do not want to show, but keep its continued presence by keyframes in the timeline.  Another way is to give the button a new name and code proceeding where on the timeline.

  • problem with adding line in tabular form after that put 4.1.1 to level

    We have recently installed the Update 4.1 .1. We now have a problem with some of our tabular forms created using the wizard. The delete and update feature works fine, but when trying to insert a new record, it will insert only the first record, but after that, it will no longer inserts. It acts as ApplyMRU (updated online Multi) is not at all shooting. No success or error message. I tried to create forms based on the rowid and also on the suites (with and without triggers), and they all behave the same way.

    This happens both in IE and Mozilla. Tabular forms were working fine before the upgrade.

    Everyone knows this?

    We just hit this issue and thanks to this thread and a light bulb above my head, resolved this question today. There is more to the story. Copy the necessary images in place works, but get the full version 4.1.1 images.

    We were already on 4.1.0.00.32, so I applied only Patch 13331096 upgrade to 4.1.1.00.23. Patch 13331096, at least one that I downloaded a few weeks ago IS NOT ALL OF THE NECESSARY IMAGES.

    Fortunately, I thought to download both. When I did a number of files in the directory images between the full version and the patch, the County came up short for the patch.

    If you have this problem, get your hands on the full release 4.1.1.00.23, NOT Patch 13331096and copy these files to image in place. Who sets the we.

  • Problem with JavaScript in my PDF form buttons

    I try to have my user by clicking on a button in my form on my site and the data in the form for me by e-mail.

    I use JavaScript with my form button code:

    this.mailForm (false, "[email protected]", ' ', ' ', 'subject', 'Message body' ' ");

    Protected mode is disabled.

    When I use the above statement (if the 1st is set to true or false), nothing happens - no e-mail is sent and no mail dialog box appears. If I change this.mailForm (...) to this.mailDoc (...), I get a mail dialog box but, as expected, he sends the blank form without the data filled due to low user privileges.

    How can I send the form data with this.mailForm (...)? (Note that I prefer to use this.mailForm (...) rather than mailto: (...)) (this.mailForm (...) because supposedly allows me by e-mail the form without user interaction.)

    -Don

    If you use JavaScript, you use the doc.submitForm method and specify the URL of the PHP script. PHP just needs process the MESSAGE and to join the incoming data to an email that it initializes.

  • A problem with the display in a form with a ScatterGraph

    Hi all!
     
    Now, I want to do an image that can be expanded outside and inside with the viewport in a form with a ScatterGraph window. I tried previously to do this picture as a backdrop, but the backgroundpicture cannot be zoomed with the display window. How can I solve this problem?

    Here is the picture:

    Or I have to calculate a large amout of points to sign on the coordination of xy without the image, and how can I register quickly because it takes a long time to calculate.

    Hello

    You can zoom/dΘplacer an image as well as the plot in charts. Here is a snippet of code showing how you can do it.

    Normal
    0

    fake
    fake
    fake

    EN-US
    X NONE
    X NONE

    MicrosoftInternetExplorer4

    / * Style definitions * /.
    table. MsoNormalTable
    {mso-style-name: "Table Normal";}
    MSO-knew-rowband-size: 0;
    MSO-knew-colband-size: 0;
    MSO-style - noshow:yes;
    MSO-style-priority: 99;
    MSO-style - qformat:yes;
    "mso-style-parent:" ";" "
    MSO-padding-alt: 0 to 5.4pt 0 to 5.4pt;
    MSO-para-margin-top: 0;
    MSO-para-margin-right: 0;
    MSO-para-margin-bottom: 10.0pt;
    MSO-para-margin-left: 0;
    line-height: 115%;
    MSO-pagination: widow-orphan;
    font-size: 11.0pt;
    font family: 'Calibri', 'sans-serif ';
    MSO-ascii-font-family: Calibri;
    MSO-ascii-theme-make: minor-latin;
    mso-fareast-font-family: "Times New Roman";
    mso-fareast-theme-make: minor-fareast.
    MSO-hansi-font-family: Calibri;
    MSO-hansi-theme-make: minor-latin ;}
    table. MsoTableGrid
    {mso-style-name: "Table Grid";}
    MSO-knew-rowband-size: 0;
    MSO-knew-colband-size: 0;
    MSO-style-priority: 59;
    MSO-style-unhide: no;
    black border: solid 1.0pt;
    MSO - border - themecolor:text1;
    MSO-border-alt: solid black .5pt;
    MSO - border - themecolor:text1;
    MSO-padding-alt: 0 to 5.4pt 0 to 5.4pt;
    MSO - border - black insideh:.5pt United.
    MSO-border-insideh - themecolor:text1;
    MSO - border - black insidev:.5pt United.
    MSO-border-information - themecolor:text1;
    MSO-para-margin: 0;
    MSO-para-margin-bottom: .0001pt;
    MSO-pagination: widow-orphan;
    font-size: 11.0pt;
    font family: 'Calibri', 'sans-serif ';
    MSO-ascii-font-family: Calibri;
    MSO-ascii-theme-make: minor-latin;
    MSO-hansi-font-family: Calibri;
    MSO-hansi-theme-make: minor-latin ;}

    Image img =
    Bitmap.FromFile ("myImage.jpg");

    in pixels, this is the place
    where the image will be drawn

    RectangleF initialRectangle = Rectangle.Empty;

    in the data, to map coordinates the
    image

    XRange range;

    Range yRange;

    Private Sub PlotMyData()

    {

    plot your data here

    xData double [] = new double [] {3, 5, 7, 5, 8, 3, 7, 8, 2, 6};

    Double]
    yData = new double [] {9, 1, 2, 6, 8, 3, 3, 6, 2, 2};

    scatterGraph1.PlotXY (xData, yData);

    xRange and yRange define the plot area limits left-top to bottom-right

    xRange = new range (xAxis1.Range.Minimum, xAxis1.Range.Maximum);

    yRange =
    new range (yAxis1.Range.Minimum, yAxis1.Range.Maximum);

    RecalculateImageBounds();

    }

    Simply map the data coordinates
    values in pixels

    posts from the top left and lower right must be mapped.

    Private Sub RecalculateImageBounds()

    {

    PointF
    size = scatterPlot1.MapDataPoint (scatterGraph1.PlotAreaBounds,
    (xRange.Maximum, yRange.Minimum);

    initialRectangle.Location =
    scatterPlot1.MapDataPoint (scatterGraph1.PlotAreaBounds, xRange.Minimum,
    yRange.Maximum);

    initialRectangle.Width = size. X - initialRectangle.Location.X;

    initialRectangle.Height = size. Y - initialRectangle.Location.Y;

    }

    Just draw the image.

    Private Sub scatterGraph1_BeforeDrawPlot (sender As object, BeforeDrawXYPlotEventArgs
    (e)

    {

    RecalculateImageBounds();

    e.Graphics.DrawImage (img, initialRectangle.X, initialRectangle.Y,
    (initialRectangle.Width, initialRectangle.Height);

    }

    Make sure that the image is of good quality so that you can zoom in pretty close.

    I hope this helps.

  • have a real problem with linking buttons to pages

    Hello

    Right, I'm pretty new to Flash CS5 and doing a simple website in Action Script 3.0.

    I have set out four pages I want, and that you have created a button for each page on each page.

    I was told that a script simple stop stop pages acting as a movie.

    I entered:

    14:00


    Stop();

    function button1_clicked(e:MouseEvent): void {}
    gotoAndStop ("home");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");

    }
    function button3_clicked(e:MouseEvent): void {}
    gotoAndStop ("galleries");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");
    }

    Button1.addEventListener (MouseEvent.CLICK, button1_clicked);
    Button2.addEventListener (MouseEvent.CLICK, button2_clicked);
    Button3.addEventListener (MouseEvent.CLICK, button3_clicked);
    Button4.addEventListener (MouseEvent.CLICK, button4_clicked);

    He said cela and buttons to link to relevant pages.

    When I test the movie buttons start flickering and pictures...

    Please help it is frustrating!

    Thank you

    Chances are you have a problem with the code in your file.  Do you get any error messages?  You should because of the double function in code that show you.  You can't have two functions named button2_clicked.  The last should be button4_clicked and should probably go elsewhere...

  • Satellite P300 - problems with the buttons of enlightenment

    First of all, I would like to apologize for my bad English, I'm French actually.

    Hi, I bought a laptop Satellite P300, a couple of days, and already I have a problem with tactile keys (one on top of the keyboard).

    Actually, the only one of the left, which is supposed to turn off the sound used to keep away the keys lights and Satellite logo. One day (and I don't know why), when I pressed her, she actually cut the sound. And now, the first two keys (mute and shortcut of windows media) do not work, but the other four (Media Player control).
    I tried Toshiba Assist, and the tool for the configuration of the pushbuttons (I don't know the English name of this tool) but I couldn't set the keys, they were not on the list "button name".

    So, does anyone have an idea how to solve this problem?

    I apologize again for my English.

    Hello

    I assume you are using Windows Vista because you bought the laptop a couple of days and so I think that you should try to reinstall the Toshiba value added Package. This package determines the buttons of the lighting that you mean and others (for example the FN keys too).

    The latest version, you can download the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    1. download the latest PPV on the Toshiba site
    2. go in Control Panel > Add/Remove programs. Find the Toshiba value added package and remove it
    3. restart the laptop
    4. download and install CCleaner. This cool cleans up the registry of Windows and system files. He should find some registry keys of Toshiba you should remove with CCleaner.
    5 reboot the laptop
    6. install the PPV that you already downloaded
    7 restart once again

  • dv2120us problem with Quickplay buttons.

    Hi, I had a problem with my laptop. These are real (not the quickplay button) quickplay buttons but the game, mute, volume, keep buttons etc. to control themselves and increase the volume and mute itself randomly. I already uninstalled the driver of buttons quickplay but the volume and make everything always the same thing.

    Help, please! HP is certainly not helpful at all...

    You may have a hardware problem.

    However, before moving on to this conclusion, you try to reinstall the software of HP Quick Launch?

    If you have, it would be a hardware problem, try to reposition the ribbon cable, open Control Panel switch and re - adjust the ribbon cable.

    If you want to make yourself download HP Pavilion dv2000 Notebook PC Maintenance and Service of Guide

    You will find how to open the switch Board.

  • Problem with the Code for the form Page

    I have a problem with a page of form to http://www.enonumc.com/PrayerRequest.html in the month passed, the form created an email that worked perfectly, providing all the information to a specified address.

    Recently (last week), we have received an application form email that still had the information for each of the observations labels, but no info after the sign = for the top three submissions. I always get the news option (name, e-mail address, phone number), but none of the drop-down choice list of the box, the text in text box in the prayer request box, or choice of rather we must respond or not.

    Any suggestions of what has happened with the code?

    You can start with code 50 or so on the page validation errors.

    [Valid] Validation of the markup of http://www.enonumc.com/PrayerRequest.html - W3C Markup Validator

    As to why the form processing script doesn't work well, maybe something has changed on your web server.   Ask your hosting provider.

    Nancy O.

  • Problem with cancel button dialogue ADF

    Hello
    I am facing a problem with the dialogue ADF Cancel button. Is it possible to make the button "Cancel" immediately for dialogue? Currently, the Cancel button is not immediate for a dialogue (type: okcancel) and when the user clicks the Cancel button, validation messages are coming even if the dialog box is closed successfully. Any help is very appreciated.
    Thank you
    Rahul

    You can use a dialog box with only the OK button and put your own button cancel on the dialog box. This button, that you can assign immediately...

    Check "Using the buttons in custom dialog" to http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_dialog.html

    Timo

  • AS3 problem with navigation button

    I'm going to have trouble getting this code works I've linked to a button I want to access this page within my current browser window can someone tell me what is the problem with this code and how to fix

    This is the error I getwhen I clicked

    TypeError #2007:perameter url must be non-null

    var url: String = ("http://www.google.com/'");

    google_btn.addEventListener (MouseEvent.MOUSE_DOWN, function (): void {})

    navigateToURL (new URLRequest, "_self") ;}

    );

    I'm officially withdrawing my brain for the day... added: evt:MouseEvent

    home_btn.addEventListener (MouseEvent.MOUSE_DOWN, downHandler);

    function downHandler(evt:MouseEvent):void {}

    navigateToURL (new URLRequest (url), "_self");

    }

  • Problems with the buttons (on the area of State/Hit)

    The site I'm getting is:

    http://www.RelicRockBand.com

    If you go to the "Biography" section, you'll see four links that work as buttons of reversal.  Now, if you go to the 'Media' section, you will see 6 links that do not appear to react correctly as buttons of reversal.  They fulfill their function, but it is difficult to get the button to appear in its "underline" in the State.  I don't know if it is a problem with the over State, the status of success or another problem with how I built the site.  If you want to take a look at this, go to:

    http://www.uvm.edu/~nmphilli/Relic_Website/Flash/Relic_Webpage.fla

    to get the FLA for the site.  The concerned items are nested as follows: in scene 1, on the content layer, label image 'Media' (frames, 16-21), you will find Media_Fader, where is Media_Content, in which are several buttons, each with getURL actions that are applied to them.  Any help would be fantastic!  Thank you!

    -Nic

    The question always involves using the textfield links.  Remove the textfields in all settings inside the buttons and your problems should go away.

  • Problems with the e-mail contact form

    Hello

    I've tried tutorials about as much as I can find online to create a contact form within my flash who sends me automatically when a person completes the forms, including a very good step by step, to VTC. What I found is that most of these tutorials start with the assumption that you create the contact form on a blank canvas of flash, that is the reality, is not always the case. Although sometimes I'm able to get forms to work if I do it on a brand new Flash animation at the time wherever I try to recreate the form in my current flash file, it stops working. For the most part, I tried to recreate the contact form as a separate film within my flash file on its own layer and tried to place the Submit button in the form of contact and outside it - film or also works of course.

    Anyone could guide my in the right direction? With CS3 btw.


    Here is the info:

    So according to the picture, my contact form is called 'mcForm' which is a clip in the larger .fla on its own layer.

    flash1.JPG

    The actions that are associated with the 1st image in the layer of "actions" above are as follows:

    flash2.JPG

    Here is the code itself repasted:


    -----------------------------------------------------------

    Stop();

    var gatherForm:LoadVars = new LoadVars();

    Send form


    function sendForm (): Void
    {
    gatherForm.receipient = " " [email protected] "; "
    gatherForm.realname = mc_form.txt_name.text;
    gatherForm.subject = "form results."
    gatherForm.email = mc_form.txt_email.text;
    gatherForm.comments = mc_form.txt_comments.text;
    gatherForm.send("/cgi-bin/formmail/formmail.pl","blank","POST");
    }

    End to send the form


    Begin button actions
    mc_form.btn_submit.onRelease = function (): Void
    {
    If (mc_form.txt_name.text == "")
    {
    _root.gotoAndStop ("Error")
    }
    on the other
    {
    sendForm();
    _root.gotoAndStop ("OK")
    }
    }
    End button actions

    ----------------------------------------------------------------

    Thanks a lot for all the help that can be provided!

    It's AS2 code, but you have posted in the forum of AS3.  Which version of actionscript is your file configured to use?

  • Problem with double FUNCTION

    Hi guys:

    I have a problem with the DUPLICATE FUNCTION.  What happens is that I have create a few BUTTONS on the stage that has been used on difference scence througth... these buttons has same action that particular point to scence page.  And that's when I found the issue of the DUPLICATE FUNCTION.

    I found that I could get out by changing the name of the FUNCTION, but as I have quite a good number of these buttons, so I really don't think not this method is handy and organized.  If anyone has a better idea how this can be solved?

    Thank you very much!

    Remove your duplicate function definitions.  There is no need of two named functions have the same name.  you only need one placed on a chassis, which plays not later than a framework where we could call this function.  That is to say, put a function named on frame 1 of the main timeline always works (so that you use the correct path of the call, if you are calling from a different timeline).

  • Problem with double graphic

    I have the HP PAVILION G6 model 1202TX. It is built with dual INTEL and RADEON graphics. INTEL - Intel HD Graphics 3000 and

    AMD Radeon (TM) HD 6470M.earlier accidentally, I've lost my windows and its drivers, but my main problem is with graphics of ts. If I install the AMD drivers that shows a problem with INTEL graphics card notification bar and if I install INSTALL it shows with RADEON question. After the driver installation, whenever I restart my pc AMD shows a dialog box, and then if I install AMD, INTEL keeps poping up notification bar in the lower right corner of the pc it something related to the SYSTEM TRAY INTEL GRAPHICS card.

    Now, I have installed INTEL graphic driver I have and every time ii restart my pc it displays a dialog box

    This appers to dialog box every time I start my pc

    PLEASE HELP ME

    Hope for action freequent

    THNK YOU.

    Hi ashwani26596,

    We will start by using the HP Support Assistant to check updates and drivers to see if that solves the problem. If this does not work then go to your Panel and then programs and features and uninstall the Catalyst Control Center. Then try to install the Driver for high definition Audio Intel and AMD High-Definition Audio Driver.

    Thank you

Maybe you are looking for