ASP Forms "Get" Server Variables
- I have a page with two radio boxes with values of "agree" and
"not_agree".
- The form is set to GET which goes to the below script for
processing.
- No matter which of the two radio boxes are selected, it always goes
to the page "/broadband/order.asp".
- There is no other code on the form processing page apart form what
is below. Code:
View Replies
ADVERTISEMENT
I am passing a variable from one asp page to another say "land registry". It puts the variable in the URL (as land%20registry) as you'd expect. I want to add it to a hidden text box in a form so that I can then pass it back (eliminating the need to store this original search variable in a cookie).
However even though I can response.write the variable as "land registry" on the new page, so I know the variable is correct once its passed - it puts it in the text box on the form as just "land" so then when it passes back from the GET action of the form - it passes it back as only "land".
If I then write Land Registry into the form text box it works fine, but as this will be
eventually hidden and the user has already typed the search string on the original page - this is not an option.
View Replies
View Related
I have a page with a link. The link says "Contact Me" and the code behind it is:
<a href="testcontact.asp?Recipient=dhalro">Contact Me</a>
Then when you are sent to the testcontact.asp page I have:
<% vName = Request.QueryString("Recipient") + "@hotmail.com" %>
<form method=post action="/email/forms/contact.asp">
<input type=hidden name="Recipient" value = "<% =vName %>">
<input type=hidden name="Subject" value="Test">
Followed by the rest of the form.
I know my contact.asp page is funtional because if I put my actual e-mail address in as the value it works.
Now I'm wondering if this is correct or even close. The reason I am doing this is because I have multiple pages with different usernames and I want it so you click a link and it passes the username to a form (i always want to use the same contact form) and then the person can just fill out the form and it send it to the appropriate person.
View Replies
View Related
I am trying to pass variables using a form. This page is a simple page that is used when an Admin is trying to delete a message from our message board. They click on a link which calls this page and sends the message Id to the page. This page only contains a form with one text box for the Admin to enter his/her password. The form needs to call another page passing the message Id and the password.
I am having trouble getting the form to pass the message Id along with the password. The message Id is being passed to the "password page" via the variable 'Id'. Here is the code I have.
<FORM METHOD="GET" ACTION="BoardDelete.asp?Id=<%=Request.QueryString("Id")%>&">
Admin Password:
<INPUT TYPE=TEXT NAME=pwd SIZE=25>
<INPUT TYPE=SUBMIT>
</FORM>
View Replies
View Related
1) This is page built as a form which displays the content of a SQL database (a specific row) for users to update.
2) Each form field contains the actual information that the database has at this time (some Columns May or May not have info in it. No actual way to determine if its NULL or Just Empty).
3) I have the actual row selector based on the Unique ID (autonumber value). Its selected from a previous page and passed through GET.
Code:....
View Replies
View Related
can anyone tell me difference between environment variables and server variables.
View Replies
View Related
im hosting my website in linux server...so i need to develop an enquiry form....my fren is hosting in a windows hsoting server and he have the asp enquiry coding..
is there any way i can do remote coding hosting ...where the enquiry form will be in my php server and the asp coding will be in my frens windows hosting server..
View Replies
View Related
Not sure which forum this belongs in, so here it is here as well as in the IIS forum
I am migrating a Windows 2000 Server Web Server with an older version of IIS to a new Windows 2003 Server with IIS 6.0.....Everything is working properly accept web forms which simply send an email via a SMTP service installed in IIS:
this is the code: ....
View Replies
View Related
What do you need to have on the server in order for LOGON_USER to work?Its not working on my server.Reverse DNS maybe?
View Replies
View Related
Need to know some about current user of NT domain. In my asp page i have used Request.ServerVariables("LOGON_USER") to get current NT user but some times it returns nothing and some times it gives correct user name.
In my application i am redirecting from one page to antoher and i need to keep server variable "LOGON_USER". For every page i have different kind of security. I don't know wheather i am missing some thing at IIS or this command works unusually.
View Replies
View Related
I just have a question for something I have been seeing out in the WWW.
Some websites that I goto display the city and state of where I live. The question is How are they doing that? is it a Server Variable ? If so does any one know what that Variable is?
View Replies
View Related
I try to make my page http://tudef.jezz.dk show the online users ip numbers, but i only get my own ip, even if more users are online.
I use request.server.variables and remote_addr
View Replies
View Related
I am trying to insert three variables into my table in my asp program. Can someone please tell me if my syntax us wrong. I keep getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 3: Incorrect syntax near '&'.
/credFeesEdit10.asp, line 735
Here is my insert statement: Code:
View Replies
View Related
Is there any way to deny a server variable to be run on a server such as LOCAL_ADDR?
View Replies
View Related
I cannot view Server Variables Specifically HTTP_REFERER, in an ASP Page that I access either by a From POST from anothe rpage or a link.
View Replies
View Related
I'm working on a shopping cart page. In page A (checkout) the user
enters their credit card information. On postback, if everything is
correct, it sends the user to page B (confirmation). My question is,
can I (or should I) use server variables to send CC information to page
B?
My boss doesn't want me to store this information in the SQL
database we're using. Obviously cookies are out of the question and so
is passing info through request.querystring, so I was thinking on using
session variables for this, but not sure if it's safe.
What should I do?
View Replies
View Related
I am trying to grab the server name and IP address using Response.Write (Request.ServerVariables("ALL_HTTP"). I am using this one because I wanted to see everything that is brought back.
The server name I am getting back seems to be the host name found in IIS not the fullly qualified domain name of the server. Is there a way to get the fully qualified domain name of the server?
Also this server is one of two servers in a cluster and the IP address being returned is the IP address of the cluster server. Is there a way to get the IP address of the server that I am actually logged into?
View Replies
View Related
At the moment I am building a small news board on my companys intranet. There are 2 different offices with 2 different domains. for each office I want to show different news relating to that office.
Is there any way with asp to get the name of the domain that the user is logged onto so I can filter different news for each domain. This will just save the hassle of putting the intranet on 2 different domains.
View Replies
View Related
I have built a site that works/worked absolutely fine on my test server. When I transferred it to a remote web host (the intended permanent home of the site) something very worrying keeps happening to my site.
I use, as is the norm, session variables to store login information. At the top of each page I do a check that Session("isLoggedIn") = "True", and if not then the system logs them back out.
The serious problem is that once you have logged into the site, the next page you try to open it fails the above check and logs you out! Obviously Session("isLoggedIn") is not equal to "True" so it assumes you aren't logged in. So basically the session variables are getting lost/cleared. This makes my site unusable, and is a disaster for it unless I can get a solution.
View Replies
View Related
Does ASP have a function to list all the server variable similar to PHP's phpinfo()?
View Replies
View Related
<%
response.write(Request.ServerVariables("REMOTE_USER"))
%>
When i use this it also gives me the domain name as well as the username. (example, amrswbouse) I know i can do js to trim off the first few letters but i want to know if there is a server variable that will save me the effort.
View Replies
View Related
isit possible to access variables (code) from ASP server script to ASP client page?? take for example the code supplied below:
'server script
<%@ Language=VBScript %>
<%
dim svalue
svalue="access me"
%>
'client code
<HTML>
<BODY>
<SCRIPT LANGUAGE="VBScript">
dim x
x = svalue 'svalue isfrom server script
response.write x
</SCRIPT>
</BODY>
</HTML>
View Replies
View Related
I want to be able to client process of the ASP page to get the value
populated in Request("rssFeed"), how can I do this because the Request
object is not available to the Client-side.
View Replies
View Related
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of these menus are then placed into the page by calling Server.Execute(rs_Modules("ModulePath")).
This works fine for up to 15 "menus" After that, the session variables that were set (not including those called by Global.ASA) are no longer set. Code:
View Replies
View Related
Request.ServerVariables("path_info")
I am able to get the full path, i.e
/community/default.asp
However is there a way that i can get the querystring as well on top of that.
for example if i am on:
/community/default.asp?pageid=3
This is my problem with a lot of my funcationailty, if you click a submit button, then it does not action, but sends it back to default.asp
/community/default.asp
View Replies
View Related
I am trying to write a simple script that will allow me to have someone complete a form and depending on which location they choose an email will be sent to a specific person.
I have a page that validates and sends and email to me correctly, now I am trying to simply add a case statement that will allow me to change the recipient to the individual it needs to go to. What am I doing wrong? Is there another way of doing this?
View Replies
View Related
Basicly I would like to know how to transfer data entered on a form one one page, to another - for example a signup:
Page one - Contains initial form
Page two - other details form ] both pages emailed through the same form.
View Replies
View Related
I am trying to take that is submitted in a form and put it into a querystring. I have a text field with the name "company_name" and has the value of <%= cCompany%> when submitted I want to take the value of the text field and send it to another page called submit.asp. then from the submit page I will append it into a table. I can append to the table fine but when I pass the value its blank. I have tried Request.Form(company_name) and Response.Write(cCompany). None of these seem to work the variable is always blank when I submit it. I can use javascript to get the value, which works correctly but cant dont think I can pass a javascript variable into a querystring.
View Replies
View Related
how come the second one has the forms lined under eachother
when the first one looks like it does?
How do i make the "boxes" in a straight line under eachother?
View Replies
View Related
I’m working on an Invoice page. The user may edit some of the vars on the page. Then The user will want to re calculate the totals. Then after seeing the re calculated totals then I will want to submit this info to the next page where the data will be put into a DB.
The question is how do I do this without using 2 forms, It looks like you can not put a form with in a form. Yet it looks like that’s the only way to be able to pass the vars iEither to the page where were calculate the vars, or the other page where we submit the data to the DB.
View Replies
View Related
i have
printerdropdown = printerdropdown & "<option value=" & rsPrinter("id") & ">" & rsPrinter("id") & " " & rsPrinter("name") & " ( " & rsPrinter("location") & " )</option>"
and want to pass two variables across my forum by selecting just the one.
i.e. rather then just passing rsPrinter("id") id also liek to pass rsPrinter("ccid")
But dont know how to without making it joined when i cann it on the next page via request.form("printerid")
View Replies
View Related
Is it possible to call ASP functions from event handlers? I am trying to find a way to have a form call an ASP function, if there is a better way let me know.
View Replies
View Related
Is it possible to create a form that will authenicate against a 2003 domain?
View Replies
View Related