1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Possible to set 2 form methods with 1 submit button? Please help.

Discussion in 'PHP' started by Ernster, Aug 19, 2007.

  1. #1
    Hi there,

    I have two forms which Ive kind of merged into 1...obviously the form has 2 different methods set eg <form method="post" action="blahblahblahblah target="_new">


    Is it possible to have 1 submit button for the 2 forms methods...so when a user clicks the submit button, the 2 seperate methods both work at the same time..

    If so how would I write it...thanks very much
     
    Ernster, Aug 19, 2007 IP
  2. Matts

    Matts Berserker

    Messages:
    195
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    My approach would be make them one form and look at what I get posted to the action handler to know what to do i.e. process one form, the other or both.
     
    Matts, Aug 19, 2007 IP
  3. Ernster

    Ernster Peon

    Messages:
    535
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi there thanks..

    Yeah I want it as 1 form, but I tried doing it but it only procecced one of the form methods..

    How do i make it process both of them at the same time?
     
    Ernster, Aug 19, 2007 IP