SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 1999
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am designing a site wherein on one page I will have 3 scripts 1) poll script
    2) formmail to email me the contents of the form
    3) powerlist to subscribe to maillist

    I have the three scripts seperately

    However what I want to do is to send the data to all the three scripts with the use of just one submit button & not 3

    Can that be done

    I thaught that we could have a script which will take the details from the form & send the data to the respective scripts

    Please advise the right way

    Thanks

  2. #2
    SitePoint Member
    Join Date
    Oct 1999
    Location
    Schaumburg, IL, USA
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the same sort of problem.

    I want to take information from a from, write it into am SQL database, and then kick out an email containing the information that was written.

    I know the code for formatting the email and the code for writing to the database, but I can't seem to figure out how to make it write to the database first and then send an email, all with the click of a single submit button. If anyone can help I would appreciate it.


  3. #3
    SitePoint Member
    Join Date
    Jan 2000
    Location
    Freeport, Illinois, USA
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty new to this but have been reading up on it.
    It seem to me that you should be able to write one script that will parse the information and then call the other three scripts as sub routines. get_form_data.pl should hold the information in _$ throughout all operations until the script has completed. My book is not with me right now but, I can look up the correct syntax later on if you want.

    If i'm wrong on this then someone please correct me.

    ------------------
    Craig Bakkala
    Http://www.navy.org/home/ussokinawa@navy.org

  4. #4
    RAGE
    SitePoint Community Guest
    I cant give u the technical answer, but here's a logical answer


    the html will submit to 1 script, which will in turn run all 3 scripts and pass the data ... eheh ...


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
  •