Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Posting form results to database w/ GoDaddy and Access...

    I'm new, and of course have a question....

    I'm trying to post the results of a form to a database and then have that DB print out to an HTML file.... This is my form: http://ncaaautographs.com/successes/successes_asp.asp

    However, as you can see when attempting this using FFox, I get an error. Any help at all would be appreciated.

  • #2
    New Coder
    Join Date
    Jul 2007
    Location
    North Carolina, US
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Take a look at the database examples on this site.
    http://www.asp101.com/samples/

  • #3
    Regular Coder
    Join Date
    Jan 2005
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by JonathanSCS View Post
    I'm new, and of course have a question....

    I'm trying to post the results of a form to a database and then have that DB print out to an HTML file.... This is my form: http://ncaaautographs.com/successes/successes_asp.asp

    However, as you can see when attempting this using FFox, I get an error. Any help at all would be appreciated.
    what error are you getting?

  • #4
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts
    I tested and recieve a message that said General error: Invalid file dsn ''

    So that right there tells you where to look. If you are using a DSN generally the System DSN is used and not a File DSN. This allows the webserver to connect to it. Have you tried connecting without a DSN using a DSNLess connection string instead of using a DSN?

  • #5
    Regular Coder
    Join Date
    Jan 2005
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i too use godaddy's hosting and have found that you are better off using a DSNLess connection as miranda suggested.

  • #6
    New Coder
    Join Date
    Jul 2007
    Location
    North Carolina, US
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Here's the DSNless code I use to connect to my access databases.

    Code:
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open "DBQ=" & Server.MapPath("../Databases/MyDB.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;MaxBufferSize=8192;Threads=20;", "username", "password"


  •  

    Posting Permissions

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