Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on a free ASP script - surveysays

Status
Not open for further replies.

nulife

Technical User
Jan 11, 2001
1
US
I am new - I mean completely new to ASP. I am trying to install an asp script on my site that I got for free at: called surveysays.

My server is readyhosting.com and does support asp but I don't know exactly what to do. The main 2 problems are these:
' This is the path to the data file the script will use to store results.
' The script must either have permissions to write to the directory the
' file will be stored in (and it will create the file itself on first run),
' or you can create the file yourself (as a 0-byte file), and just give
' the script permission to write to the file.
datafile = Server.MapPath("/") & "\data.txt"

What goes above? I just need an example. For example, my exact server path is: d:\html\user\small-miracles.com\html\cgi-bin then do leave the & "\data.txt?
Do I need that much info in my server path?

' This is the URL needed to call the script directly.
script_url = "poll.asp"

I'm assuming the above would be:
Am I on the right path here?

Then how do I make the page call the script? Do I put this where I want the poll to be? <!--#include file=&quot;surveysays.asp&quot;--> with the correct path, of course?

Lastly, where and how can I learn ASP?

Thanks so much,
Christy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top