+ Reply to Thread
Results 1 to 2 of 2

Thread: Form results insert to mysql

  1. #1
    Join Date
    Jan 2006
    Posts
    15

    Default Form results insert to mysql

    Hello - Russell
    I have the form setup and running really well. What a great application, thank you!
    I have added a php script to the final page of my multi-page form to insert the form data into a mysql database and a PayPal buy now button. The script to PayPal works fine - but, I have not been successful inserting the form data into a mysql database. Is there anything I should know about the interaction between FormMail and a simple database insert script?
    I don't receive any errors when I load the final page - the PayPal button works just fine, but, I also don't get any entries to the database.
    Thank you,
    BevO
    Last edited by BevO; 22-Feb-2006 at 11:07 PM. Reason: to correct typo in the title

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Form results insert to mysql

    Hi,

    Here's what I would do in this situation:
    1. Create a new PHP script.
    2. Add the code that writes something to the database each time the script is run.
    3. Run the script from my browser.
    4. Check that the database was written to.
    5. If not, debug this script until it works.
    6. Run the script many times to confirm that it writes to the DB each time I open it in my browser.
    7. Copy the script to the Thank You page script.
    8. Re-test using the Thank You page directly (if possible).
    9. Re-test using the complete form process.
    It's the old "Divide and Conquer" concept. Us programmers do this most the time - and when we don't do it (because we can't be bothered), the problem usually takes 5 times longer to solve.

    It seems like a bit of effort to go to, but it really is the best way to diagnose this type of problem.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. mysql connect
    By moreover in forum FormMail Subscription Support
    Replies: 5
    Last Post: 23-Oct-2004, 11:36 PM
  3. smae setup different results
    By tray in forum FormMail Subscription Support
    Replies: 7
    Last Post: 17-Aug-2004, 09:24 PM
  4. Show form results to user
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 02-Aug-2004, 05:59 AM
  5. not so intersting results
    By expisp in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Feb-2004, 08:15 AM

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