Pete
13th November 2004, 17:56
I'm trying to set up my site so that when a user submits a form, an asp script is called which then updates a database.
I'm fiddling around trying to get ASP to work but am having no luck. Is there a specific directory I should upload the ASP script to?
I've been trying the following:
I've uploaded the asp (script.asp) to the cgi-bin folder.
I've used the following html to call the asp:
<FORM name=BookingForm
action="/cgi-bin/script.asp"
method=post>
I've uploaded my access database (example.mdb) to the same folder (cgi-bin)
I've used the following ASP to connect to the database:
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("example.mdb")
Have I put the asp script and database in the right place, and if not where should I put them, and what changes to the code would I need to make?
As you can probably guess, I'm very new to asp etc.
Thanks in advance,
Pete
I'm fiddling around trying to get ASP to work but am having no luck. Is there a specific directory I should upload the ASP script to?
I've been trying the following:
I've uploaded the asp (script.asp) to the cgi-bin folder.
I've used the following html to call the asp:
<FORM name=BookingForm
action="/cgi-bin/script.asp"
method=post>
I've uploaded my access database (example.mdb) to the same folder (cgi-bin)
I've used the following ASP to connect to the database:
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("example.mdb")
Have I put the asp script and database in the right place, and if not where should I put them, and what changes to the code would I need to make?
As you can probably guess, I'm very new to asp etc.
Thanks in advance,
Pete