I'm trying to figure out if it's possible to use an email-processing page for different forms.For example, having a feedback as well as a contact form page.When the user fills out the form I would like it to be processed on the next page,which will display all the completed fields as well as email them to the recipient.
I can do this with just one form,but what if I'd like to use the same form-processing script with a different page and then another without having to specify particular form fields.
This is done in CGI.I looked at Matt Wright's formmail script but I don't know if the same carries over to ASP.
Is it valid to get information from a request.form assign that to a value then use that value to get other content on the requested page.
I return a large rs with multiple feild names. I can't use a static feild def because they would overwrite each other on the loop, SO i create dynamic field names then pass the id back to the next page via javascript. I then use that id to add to the feild name to make sure I get the right feild.
I have a request form that is used for requesting copies og an edition of a magazine. What I need to do is get back the information, from a MS Access table, for the issuedate and deadline.
Because the deadline is not always the same number of days (ie dependant on issue it could be 14 days before, or 21 days before etc), so as well as picking the issue date from the table, I need to be able to get the deadline date back, and write to a seperate Request "field" on the Form. Code:
Daft question I'm sure but is it possible to pass information to a page via the Request.Form AND Request.Querystring at the same time?
I.E If I have a form with several text boxes and the URL includes a variable will the page it's being passed to be able to gather the information from both sources? Code:
Yet if this button is clicked, they go back to the server and the page is refreshed with original values.
If I click the browser's BACK button (rather than my button above), I go back to the page (from cache I guess) I want (because it contains the user changes). Here I can correct the password without having to rekey the changes.
So, what is the Request.Servervariable needed for the equivalent of the BACK button?
I am trying to pass a hidden field value on a form into another field on the form so that it can then be inserted in the database, to enable me then to reference that number at a later date.
(The hidden value (1 for example) would then automatically get passed to the other input field.)
The code for the text field that allows users to type an number into it for submission to the db is below, but what code do i need within the hidden field to populate this text field below so that users do not have to type the number in? Code:
I have a problem! Lets see if i can explain it....
if the querystring referrerid = "" then the page crashes. i.e. .com/register.asp?referrerid= so its blank.
If request.querystring("referrerid") = "" then
I tried using a redirect to the same page without the querystring but the code still picks this up as being <request.querystring("referrerid")= "" > and ends up looping.
I don't want to replace the "" with anything because a form box takes it information from there or a session("referrer") if the user has entered incorrect details in the registration and been returned to the same page.
Does that make enough sense for anyone to make any sense?
I use the Request.QueryString to pass variables from one page to another in ASP but my question is how can I pass a variable such as the one used in Request.QueryString from an ASP page to a XSL page?
I want to open a text file using the following way. I get the file list. but I want to open the file . how can I do in order to transfer the "nm" variable between the asp
If UCase(Trim(CStr(oRset("Suburb"))))=UCase(Trim(CStr(Request.QueryString("link")))) then
etc etc
end if
The problem is that although the Suburb and the link variables match often,it only works when the variable has been pulled from an Access database where I entered the data directly into Access through the Access interface.Where I have entered the data through the web interface, it ignores it as if it does not match.I have added CStr, Trim and Ucase to try to get it to see it as the same text but it still fails.Can anyone help. ASP 6.0 and Access 2003.
i have a myspace account. of course now that i have been getting more and more into programming, i try and think about it when i use other sites and see how i would do it, or figure out how they did...whatever (I know, its wierd)
you can view a myspace members profile by going to myspace.com/username. now with my experience with the querystring is that you have a variable, and then a value. but here it looks like the variable might just be understood and the value is whatever is after the slash...or something like that.
I am using a free ASP host and when i do a Request.QueryString it returns the value in lowercase.Has anybody experienced something similar before?Is there anyway around it?
In my page (photo.asp) there are 2 iframes - thumb and large. The iframe Thumb has p.asp inside it and its content is dynamic depending on the querystring of the parent page i.e. photo.asp?i=7.My problem is I cant read the querystring of the parent page (photo.asp) from inside the iframe.
I am doing a JMail and I want to include a hyperlink in the message. Now the URL is juz in the form of text and not hyperlink.The hyperlink need to make use of the request.querystring to obtain the id and email of the customer. How do I write that?
I am trying to get my shopping cart to get some variables back from a payment gateway. The end goal is to have it OK digital downloads when the 'order complete' message is sent from my payment provider. It's real simple at this testing phase, only two variables are present in the URL that the payment gateway is trying to send me: Code:
I've encountered many problems upgrading my Win2K Server to Windows 2003 Server, not the least of which involve IIS 6.0 and ASP (classic) support.
For example... I'm getting Event ID 2236: The server failed to load application '/LM/W3SVC/87257621/Root'. The error was 'Could not read key from registry'. Application Log entries whenever certain ASP code is executed. These are ASP pages that ran fine for years under Win2K/IIS 5.0.
I can do Response.Write without a problem, but something as simple as Request.QueryString("IsActive") yields the above event and a nasty error '8002801d'.
Has anybody encountered this kind of difficulty with ASP on IIS 6.0? Does anybody have a clue as to how to correct this behavior?
I am passing 3 parameters and would like to get those values in my form and write it as a link in an e-mail that I am sending, not much luck lately, my Request.querystring syntax is sooooo wrong.