I am running an .asp site, I can grab the IP address of the user, is there any way that I can set a cookie with the IP?
Here is what I am trying to do. I am running a competition on the site, where people can vote for villains. I want to only allow one vote per villain per day to each person. I had to take the site down because people were accessing the URL directly and voting 1,000's of times.
The way I figure it I need to set a cookie with the users IP address and then test it when they return to see if that IP address has already voted on that villain.
The problem is that I don't know a whole lot about cookies our reading their values. If anyone can point me in the right direction I would love it. I am short on time for this.
I am setting a cookie in a PHP script which is redirected to an ASP page. I am unable to retrieve the value of the cookie in the ASP page using Response.Cookies("").
When I set a cookie in global.asa in the sub session_onstart, even if I have "privacy" in IE 6.X set to "block all cookies" the cookie is still set, and I can get it on other pages.
I can't find an article that addresses this as a specific issue. Why does the browser get the cookie when it is set in the session_onstart event even when I have "block all cookies" set?
has anyone got a function or subroutine which will remove blank out or remove email addresses.
i've wrote a function which will remove valid email addresses, it's pseudo addresses such as "blah @ blah.com" or "blah_at_blah_dot_com" or "blah_at_blah_._com"
the function is basically to stop users posting an email address in a message.
I am creating an edit facility for an online showroom which I want to output the contents of a database record into a form so it can be edited and updated by the user. Two of the form fields are text boxes of type="file". When I try to output the value of these filenames to the text boxes they don't appear.
I have tried outputting these in a normal text box and they output fine so it is obviously a restriction when outputing to file type text boxes.
I am currently having problem with parsing .asp files when I tried to type http://localhost/iisstart.asp file with my new IIS local server.f I tried to open .html with my localhost server.. it is working properly, example: http://www.localhost/postinfo.html
I suspect it could be because of my firewall or the way I setup my IIS local webserver was inappropriate.
Does anyone know about setting up IIS on WinXP? I have it installed but when I try to use it, it asks for a username and password, and I dont know what the username and passwords are. Any ideas on how to fix this?
I am not able to set cookies with the domain name on a Windows 2000 server with IIS 5.0. If I use the IP address it works. I have another machine running IIS and I configured them together.
im trying to set up an array of database records. i want to be able to display all information but only display the request numbers once for each number...while displaying all seq number's associated with each request number. ex:
right now, it works so that the request numbers are printed out for each seq number....i've marked the section of code where the problem is being caused...i think it's in the way im trying to set up the array. Code:
i'd like to make asp page which will run on my computer and other users can connect through the internet on it ...it's a simple one asp page. .. the thing is i don't know how to setup ASP server ... anyway ... Code:
I have a dropdown box in my ASP page, which the user can select multiple values. I can read the values out and save them to my database, but how do I make the selected values appear selected on a page when the user goes back to edit/update page?
Have tried the following JavaScript.... document.frmAccom.selAccomType.value=1,3; document.frmAccom.selAccomType.values=1,3; ?? Doesn't work
How do one set the HTMLDirectionality of a Page that is using a Master Page. Normally one would have set the 'dir' attribute of the <html> tag, but one cannot do that on the Master Page.
I am making a small ASP script to track users from an email marketing campaign. Basically the email is sent to subscribers, then when they click on an offer they are sent to a third party provider. Right now we can track how many users open the email, and how many visit the site, but we would like to track conversions. The third party will only provide stats via referer. Is there an easy way in ASP to set a referer to a custom url during the redirection?
I have not used ASP before. Are there cookbook instructions for how to set up an asp directory structure. It is not clear to me how I must mark directories (virtual or physical), so they will all be considered to be part of the same application.
I have no idea what would cause this because my system setting is set to English and all of my other programs that use the date and time are doing it in English but my ASP seems to be giving me the date in Italian For example..
WeekDayName(WeekDay(Now())) = venerd́ instead of Friday.
Is there anyone out there who can set up a relatively easy shopping site. I will need it for selling music cds. This would be for about an inventory of about 2500 titles, which I have in .csv text format or MS Ecxel or MS Access but it should be database driven and easy to be maintained by a non-techie.... I was thinking of mals-ecommerce (oscommerce, I hear has been somewhat difficult), or some other ones that I've seen out there, like ezstores.net, comersus.com, cactusshop.net, or www.alanward.net/acart Thank you very much, and please ask questions, as I am sure there is something I probably left out.
I just want to know what are the setup needed to run my web page without logging in to the server? Im using Windows NT 4.0 as my server and using IIS 4.0 and Micorosoft Transaction Server.
I have this large include file that will change based upon the page that includes it. Is there a way to make the include dynamic, for it to know which file is calling it and use variables based on that file?
I'm trying to use CDO with ASP. How do I set the value the user types in to be a variable that I can use?One specific of this is I want to have a text input for the user's email address. The value the user types in will be stored as a variable (hopefully, if this is possible). I assume it would be something like this:Code:
I've just developed an asp.net website with SQL Server 2000 database. I wish to host it on my own pc. My computer specs are:
AMD 64 3500+ 1G DDR RAM 250G HDD 18MB Buffer ASUS A8V Delux MB Windows 2003
I was going to install IIS as webserver.what other software do i need and what else i have to set? for sure i have to buy a domain name and redirect it to my ip address.
I trying to set an array inside a loop with the variables of the loop. It seems to loop throught once then it will throw the following error: Microsoft VBScript runtime error '800a000d'
Here is my code:
<% 'outputquery session outputs fine Dim edit_contents_array total = UBound(session("outputquery"), 2) For i = 0 to (total) 'set edit array edit_contents_array(i,0) = response.Write(trim(session("outputquery")(0,i))) edit_contents_array(i,1) = response.Write(trim(session("outputquery")(1,i))) Next %>
I am trying to learn new stuff using asp. That means I am downloading a lot of examples and looking at them. Sometimes thats all I do is look and compare his/her code to my attempt but also sometimes I need to see a working demo. I find I am replacing the path a lot. Is there a faster way to do this.
can Create a txt file with paths in them and use that to get paths from. It would be differant if I was using the pages but I do not evan have a webpage yet just iis setup on my home comp.
I am having troubles with configuration. What do I add to "httpd.conf" file in Apache, in order to execute ASP files and get everything working? Where do I then put ASP files?