SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2000
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Sumbitting actions

    When someone submits a form to have to submit to more then one place? For example, send the info to a database and also send it somehwere else. Is this possible?

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Technically no, but you could set the target of the form to _blank, and run a javascript function that submits the form to the default action, modifies the action to the second page and changes the target to either a new window or _self, and then re-submits the form.

    Another option is to have an intermediary script that inputs data to the database and then forwards the data to another page.
    ck :: bringing chris to the masses.

  3. #3
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm going to put this in the Client Side Scripting forum. You will probably get a better response there.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  4. #4
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if u use asp, and the other file would nbe on the same server, it would be possible using the response.execute() command, and if it was on another server, it could be done using the M$ XMLHTTP component, jus ask if you need more details

  5. #5
    SitePoint Zealot
    Join Date
    Oct 2000
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    umm...I use php, but the I want to send one action away from the server.

  6. #6
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, that leaves me out i only do asp and i could do it with the XMLHTTP component, dont know if theres something like it in php, maybe u should post in the php forum?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •