Problem with dual buttons on a form

Hello -
I have a single form with two buttons, currently named
'Button1' and 'Button2'. Both buttons lead through the default
DW/php code to update database records (in MySQL), but I want the
page redirect after updating to be determined by which button was
pushed.
I am using $_GET['ButtonName'] to direct action based on
which button was used to submit the form. Unfortunately, I can't
seem to redirect the page where I want.
The code I am using is:
=======
if (isset($_GET['Button1'])) {
$updateGoTo = "edit_onepage.php";
} else {
$updateGoTo = "account.php";
========
If the user submits using Button1, I want them forwarded to
"edit_onepage.php". If he submits using Button2, I want him
forwarded to "account.php". Unfortunately, no matter how I fiddle
with this code, the form is always forwarding to "account.php",
regardless of which button is pushed.
Can anyone see what I am missing here? Thanks in advance for
your advice.

Oops! Found my own mistake. It works if I retrive the button
information with '$_POST', not '$_GET'. I'll leave this up in case
anyone else has a similar porblem.

Similar Messages

  • Problem with Submit Button in Adobe Forms Central

    I have a PDF form that I uploaded to Adobe Forms Central.  I created the fillable fields & the submit button in Forms Central.  I have several documents like this.  All have worked in the past.  Today on my latest file, the submit button doesn't always work.  I am getting some submissions, but some people have reported to me that the submit button does not work.  I tested it myself to see.  I had to create a Digital ID for myself, which seemed to work fine.  But when I click on submit, the form says "Submission Failed.  This form can no longer be submitted. Please contact the author."  I'm the author & don't know what the problem is.  Anyone know what the problem could be?

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

    If its due to sensitivity issues, these self help guides might help.
    http://www.youtube.com/watch?v=zNwr_mxgs9Q
    http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
    By the way, alcohol based hand sanitisers work too.
    Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
    One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier.

  • Problem with Consolas font in a form

    I have problem with Consolas font in a form in latest Adobe Reader (v11.0.9)
    It shows dots (password sign) instead of letters. Edit box is not configured for passwords.
    Form was created by Foxit PhantomPDF and it shows correctly in Foxit.
    Can somebody check PDF for errors or warnings?
    http://www60.zippyshare.com/v/71759184/file.html

    You should embed these fonts in the document.
    If you need more help with this, please ask in the Acrobat forum.

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • Problem with Information button in WAD

    Dear Mates,
    I have a problem with Information button in WAD template.
    I have two queries in web template. those two queries are in two tabs( i used Tabstrip ) respectively.
    if i press first tab it shows query1 and if i press second tab it shows query2 absolutely.
    problem
    when i am in first tab, if i click information it will show information about query1, but when i am in second tab,
    if i click information it will show information about query1 only..
    i need it to show information about second tab.
    Please help. Its urgent. Full Reward points will be given.
    Thanks in advance.
    Regards,
    Ranganath

    check out this link
    http://www.mhprofessional.com/downloads/products/0071640266/0071640266_chap01.pdf

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • Problem with the button

    Hi my name is Lior Sassi from Israel. I bought an iPhone 5 in Amsterdam. Now I have a problem with the button on the iPhone and I still have a guarantee. Where can I fix the problem?

    The Warranty is only valid in the Original Country of Purchase.
    For Troubleshooting your button issue... See Buttons and Switches here...
    http://support.apple.com/kb/TS2802

  • Problem with sleep button

    I have problem with sleep button on my hp pavilion dv6-1354us When i press FN + F5 nothing happend. I reinstalled drivers for hp quick lunch buttons but the same problem.. Any solutions ? Thanks.

    The operations of FN functions mainly based on the intrinsic working between the drivers and System BIOS.
    If you already upgraded the Quick Lanuch Driver, then you may want to upgrade your System BIOS to the latest one in HP website to see if it can resolve the problem for you.
    However, you need to be careful while upgrading your System BIOS.

  • Hey everyone I am haveing problems with Flash Button

    Hello everyone I am new here so I am haveing problems with
    Flash Button because of the html address it wont go to the address
    that i put into it it keep going to
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesigner.net
    why does it do that? this is a link problem issue with flash
    button in macromedia dreamweaver 8?
    someone please help me?
    Jeremy

    >
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesig
    > ne
    > r.net
    In the dialog box for the Flash Button, in the link box, put
    the full
    absolute path if an external page. Including the
    http:// part.
    http://www.example.com/page.html
    for pages inside your site- use the browse to file icon, and
    use a relative
    path.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Problem with Masked Buttons

    As it stands i have a button called Start, when this button is hovered over, three more buttons appear at its side (all masked)
    I'm having trouble actionscripting the buttons, ive tried putting the AS on the button
    on(release){
    gotoAndStop(2);
    seen as everything so far is done on the first frame on various layers i just need it to go to frame 2. but this doesn't work.
    the code that's on the start button is
    on(rollOver){
    Startmenu.play();
    Start menu is the invisible movieclip which has the masks and rollout buttons in.
    anyone got any ideas?

    start button does overlay the other buttons and it is on the main timeline. as is the movieclip which activated the 3 buttons when the start button is rolled over with the mouse.
    Date: Fri, 26 Mar 2010 08:39:42 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problem with Masked Buttons
    does your start button overlay the other buttons?
    is your start button on the main timeline?
    is the movieclip with the 3 buttons on your main timeline?
    does that movieclip respond to the mouse (and thereby intercept mouse events intended for the buttons it contains)?
    >

  • Problem with the buttons

    Recently I have problems with some buttons on my 8800.
    When I hit the trackball the BB writes "Uo". When I hit the 'back' button it writes "Hl". Also the menu button does not what he has to do. Anyone the same problem or even better a solutions for this problem?
    Bye, Ben

    You are not alone.  the same thing happened to me today with my 8820. 
    it worked fine for one call then i hung up and tried looking up a number.  Track ball dosn't work at all, their isnt even a backlight on the trackball.  the back button types in hl.  i also think my e button is enter but i dunno.  that one seems on and off.
    Edit.  I found this:
    http://www.blackberryforums.com/general-8800-series-discussion/114752-blackberry-button-problem.html
    Message Edited by jasgud on 07-27-2008 08:25 PM

  • Problem with option buttons

    Hi!
    We have a problem with Option buttons.
    Example: We create a new document , then we add a group of Option buttons, so far no problem,  but we can't have different description on each button. Say we create four option buttons, option 1, option 2, option 3 and option 4. They are now grouped together so that we can only choose one option, but we also want to have different descriptions on the tooltip when the user hovers over. But when we set for example "Option 1" as a description on the first button, all buttons get the same description, what is wrong!
    Dan

    A field's Tooltip entry is a "child" of the field's Name (in the General tab of the field's Properties dialog).
    So, all fields of the same Name will have the same Tooltip.
    Perhaps this is the problem?
    Be well...

  • A problem with the buttons

    We are making a video game at school. and we are having
    problems with the buttons. We are having problems with the action
    codes. like gotoandstop. and things like that. it comes up that we
    have errors do you have any possible solutions.
    Thank you,
    Blevins EAST

    trx 450 wrote:
    > We are making a video game at school. and we are having
    problems with the
    > buttons. We are having problems with the action codes.
    like gotoandstop. and
    > things like that. it comes up that we have errors do you
    have any possible
    > solutions.
    > Thank you,
    > Blevins EAST
    Need more info or file source for us to check.
    "My car does not work, what's up with that" is way too
    general to even try to
    suggest something.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • A problem with rollover button

    i have a problem with rollover button in the menus when i upload my site to the hosting server. When i preview in browser with Dreamweaver before upload , there are no problems.
    Thank you!

    You have not uploaded the images on the server which is why rollover is not working. When we put the url - http://modano.1gb.bg/button4a.gif in browser it takes the user to the home page of the hosting company. I think you need to check to make sure that the images are uploaded properly.
    Regards.
    Barbara Long

Maybe you are looking for

  • IPod touch 4g won't charge

    Hello,my iPod touch 4g is fairly new but for some reason it just won't charge. I replaced it the 1st time back in April,because it was very cracked and I got a new one but this one isn't working that well. When I plug in the ipod it shows the red low

  • Error message in Media Encoder

    Hi, I am getting an error message in Adobi Meia Encoder as I try export an short movie from Adobe Premiere Pro CC 2014 It reads: Erro compiling movie. Unknown error. please help rik zak

  • Macbook Pro Constantly Restarting after Upgrading to Mavericks

    Upgraded this afternoon and Macbook will not stay up for more that 3 minutes before restarting and giving the message that it is restarting because of a problem.

  • BADi called from transaction FB60

    Hi all I am looking for a BADi called from transaction FB60 in ECC 6.0. This is needed due to the fact we will develope a solution where we transfer the cost from an invoice booked to an intern order and transfer the cost and currency to CRM 7.0. Ple

  • 11g TP3 / ADF BC / Support for database type in column

    Is it necessary to instantiate an object of corresponding type in the row implementation class to manage the corresponding type attributes like in 10g ? Example from 10g : protected void create(AttributeList attributeList) super.create(attributeList)