SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Form "post" actions?

    I'm want to post a contact form both to a lead aggregator and to my salesforce.com account by creating two "post" actions on the submit button.

    I dont know where to start, can someone help me with a client side javascript solution for this?

    If you need more info please ask and i'll try to make it as clear as possible.

    Thank you.

  2. #2
    SitePoint Evangelist smftre's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you have one <form> element and when clicking submit you want it to be sent to 2 different locations for processing?

    If I understood correctly then javascript would probably not be your solution, you would want to look into a server-side scripting language like php or asp etc.

    The serverside script would receive the posted form data and then send it on to the 2 different sites you mentioned.
    Statvoo.com The Website Traffic Monitor
    The best way to monitor traffic to your sites for free!


    Web Development London UK We make web 3.0 applications

  3. #3
    SitePoint Member
    Join Date
    May 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for your suggestion . we're building the site using asp.net in c#. can you offer a recommendation for a server side script for that then?

    even though I'd really prefer it to be done client side, if it cant work im open to using a server script, but i'd need help writing that as well.

    thank you

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,870
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by djc225 View Post
    even though I'd really prefer it to be done client side, if it cant work im open to using a server script
    That is something that can't be done client side - processing of forms is something that must be done on the server. The best that client side processing can do with a form is to tell some of the people filling out the form if they have made a mistake in what they entered.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Tags for this Thread

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
  •