Requesting URL
Does anyone how to get the url in e.g. http://localhost/dev/a/test.asp?id=1 (so I get test.asp). I've tried <% request.ServerVariables("URL") %>but it returns/dev/a/test.asp, so far I've also heard to use InstrRev, but I don't know how to use it.
View Replies
if it is possible to request the url of the current page the user is on? i.e. is the current page index.asp or is it home.asp, for example?
View Replies
View Related
I am trying to make it so that after a user logs in once I store their UserName and Password in cookies on the browser but I am having no luck getting the to pull back after they have been written. My login page looks like this
Code:
<card id="Login" title="Login Page">
<p>
Welcome to the J.C. Evans WAP Site<br/><br/>
UserName:<br/><input type="text" name="strUserName" emptyok="false" value="<% Request.Cookies("cksUserName")%>"/><br/>
Password:<br/><input type="password" name="strPassword" emptyok="false" value="<% Request.Cookies("cksPassword")%>"/><br/>
<do type="accept" label="Login">
<go href="login.asp" method="post">
<postfield name="strUserName" value="$strUserName" />
<postfield name="strPassword" value="$strPassword" />
</go>
</do>
</p>
</card>
View Replies
View Related
I'm trying to make a simple Feedback Form using that CDONTS thing I read about (in that "How to use CDONTS" thread). Every works like it should until I try to step it up a little and get the information from a Form... Code:
View Replies
View Related
How do i request data from an iframe during a POST .I have an ASP page with a dynamic iFrame in it and need to be able to request.form data from the iFrame's form.
View Replies
View Related
I have an asp form page that has alot of textboxes on it and are displayed in a looped table, meaning that the number of fields submitted will vary each and every time the form is submitted.
I do not know how to pick up these fields on my submit page. Normally I would just use request.form("fieldname") but since i dont know how many fields will be submitted, its hard to bring in the field values that way.
there is only 1 field on my form but there could be alot of that 1 field because of the loop. I managed to name each field txtEmail1, txtEmail2, etc... Code:
View Replies
View Related
I am building a website to pull data from a remote https site using xmlhttp. The data from the https site is behind a login screen. I can successfully get through the login screen with:
set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXMLHTTP.Open "POST", "https://website.com/validate-login2.asp", false
objXMLHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objXMLHTTP.Send "Username=uname&password=pwd&company=O"
That works great - but then, when I try to go to the next page (where the data is that I want to pull) - I use the same process and I get kicked back out to the login screen? Could there be some cookies, referer, strings being passed normally that I am not including in my second request - How do i find out for sure?
I have used the software IETrace and it looks like some cookies being passed, but how do I know for sure if (and what exactly) it is using?
View Replies
View Related
*Hides face for posting such a simple problem*
We've got a page called image.asp that we want to display the large version of all our images on.
Here's the relavent code:
<img src="<% request("image") %>" >
And we want the URL to be:
View Replies
View Related