Separating Out Concatenated Values In Request.Form

I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like: Code:

View Replies


ADVERTISEMENT

Problem Separating Request.form("value") From Record ID

I have an asp page which lists records.
Each record has an ID appended to it.

On the following edit page, I am trying to test against a certain
field value, if it is >0 then run the update, otherwise don't. The
problem is the data for testing is as follows:

Dim arrMetal
Dim iLoop
arrMetal=split(request.form("ID"), ", ")


For iLoop=0 to Ubound(arrMetal)

IF request.form("del_qty_" & arrMetal(iLoop)) 0 THEN

Where del_qty is a number entered in the form, and arrMetal(iLoop) is
the records ID whilst in the loop on the edit page. When I try the
above if statement I get an error: Code:

View Replies View Related

Request.Form Not Retrieving Values

I am having a slight problem. I have an asp page called custfeedback.asp. This page contains fields where the customer fills in name, email address comments etc. The form gets submitted to feedback_complete.asp, where a message is displayed thanking the user.

My problem is that the variables in custfeedback.asp are not "retaining" their values when the user is redirected to the feedback_complete.asp page. I know the asp is working, because I have the following line in that displays correctly:

<% Response.Write (now()) %>

I have no idea why the variables aren't retaining their values. Does any one perhaps have any idea how or why this is happening, and how to resolve this problem?

View Replies View Related

Dynamically Loop Through All Request.Form Values

How at the start of script can I dynamically loop through all Request.form variables and use them ? either name or the value, both is the ideal though.

example.

have a form:

2 textfields. named "text1" and "text2"

In asp I need to dynamically grab this data not knowing that this form had the textfields "text1" and "text2".

ideal print:

name "text1"
value of text 1

name "text2"
value of text2

View Replies View Related

Return 2 Access Field Values To Form REQUEST

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:

View Replies View Related

Search Across Two Concatenated Fields

I have two fields First_Name and Last_Name. I want to search for John
Smith by entering "John", "Smith" or "John Smith". I have tried to
concatenate the fields with this code and it works with "John" and
"Smith" but comes up blank when I enter "John Smith".

SELECT First_Name, Last_Name FROM ASPP_Users WHERE (First_Name + ' ' +
Last_Name) Like'%" + Replace(Recordset1__r_name, "'", "''") + "%'

Is there something incorrect in the concatenation part of the code ? I
am using MS Access.

View Replies View Related

Consecutive Request.Form And Request.BinaryRead

Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.

I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?

View Replies View Related

Request Values

I am displaying an image on an ASP page using an <IMG Src=Image.asp>. image.asp delivers the image using BinaryWrite. This is done to keep the images from being harvestable. My problem is I don't want somebody to be able to come directly to Image.asp so I wanted
Image.asp to be able to get the Image to display from the originating page.

Only problem is that in Image.asp the Request.Form collection is empty. Is there some way that I can determine that the request is coming from one of my pages and not somebody coming directly to Image.asp.

I know that I could do this with a session variable but I don't want to enable session state.

View Replies View Related

Request - Pass Values

I use the below code to pass a value to use in the next page. How can i pass 2 of them in the same way ?

oRs("N_GEN") = 2
oRs("COD_NOTAIO") = 00001

<a href='delete_atto.asp?n_gen="& oRs("N_GEN") & "'>"%>
i tired

<a href='delete_atto.asp?n_gen="& oRs("N_GEN") & ", codice_notaio="& oRs("COD_NOTAIO") & "'>"%>
but i got a error.

ERROR: invalid input syntax for integer: "2, codice_notaio=00001"

Any idea?

View Replies View Related

Request Multiple Values

i've got 7 radiobuttons with the same name, but them values are different. I need to request the checked values and insert in my field on the database, but how can i get do this separated ones?

<input name="idioma" type="checkbox" class="campo" value="1">Portuguese
<input name="idioma" type="checkbox" class="campo" value="2">Germany
<input name="idioma" type="checkbox" class="campo" value="3">Russian
<input name="idioma" type="checkbox" class="campo" value="4">Spain
<input name="idioma" type="checkbox" class="campo" value="5">French
<input name="idioma" type="checkbox" class="campo" value="6">English
<input name="idioma" type="checkbox" class="campo" value="7">Italian

Can anyone Helps me?

View Replies View Related

Request.querystring, All Values If Empty?

How do I get all walues if my querystring is empty?

If I have a table with let's say 10 rows/records, (ID 1-10). I then have a
recordset with request.querystring("id") and get the record having the id
thats shown in the address bar ("..com?id=4" would get the record with the
id 4). How do I get all records if the querystring is empty ("..com")

I have: Code:

View Replies View Related

Pulling Values From Request.QueryString

I need to pull values from another page to a form in my script. Basically i want to update an entry in my dbase and populate those current values to a form which is working fine for most of the form except the dropdownlist. Also i dont know if this is an issue but i have a "FOR" Script running in my dropdownlist constructed as follows:

<% For x = 0 to 1000%><option value="<%=x%>" selected="<%=Request.QueryString("CabN")%>"><%=x%></option><% Next%></Select>

As you can see i place the Request.Querystring object in my code but the dropdownlist doest recognise this and continues on until it reaches 1000 which at this point it stops. I want the drop downlist to reflect the same value as that which exsist already in the datebase for it. What am I doing wrong?

View Replies View Related

Form Values With A File - Passing Values

I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:

To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:

View Replies View Related

Request.form :: Can´t Upload But The INSERT INTO Form Works Propertly

I´m having a problem using ASP Upload with an insert form..

If I use ENCTYPE="multipart/form-data" the all the parametres i might get with request.form don´t appear.. but i can upload the files.. Besides if I take away the ENCTYPE tag, i can´t upload but the INSERT INTO form works propertly

View Replies View Related

File Form Type And Request.Form Problem

I have a form as follows:

<form action="dropboxsubmit.asp" method="post" enctype="multipart/form-data">

<input type="file" name="FILE1" size="30">

<input type="text" name="def" value="0" size="10">

etc.....

and can't get my asp to recognize data in other form input boxes using Request.Form

Any thoughts?

View Replies View Related

Request.Form Doesn't Return Form Data

I have some ASP server-side code that works perfectly when the client is running on Windows (IE, Netscape, Firefox, etc.) but doesn't work at all when the client is running on Macintosh (IE, Omniweb, Safari, etc.) This is the client-side Javascript code:

View Replies View Related

Separating Code

I've been using ASP to create my database-driven websites for about 2 years now and I'm getting a little sick of always having the scripting code mixed in with how the page should look.
All I can imagine doing to solve the problem is to pre-build any content(with minimal html formatting) early on in the script and then output those strings in the desired spots on the html section.
I've also been told that I should use XSLT to separate code and content, but I'm a little hazy as to how the model works. The way I understand it, I change all my ASP to output ONLY XML and then I set up the server to run XSLT on the those XML pages based on style sheets that I design. Is this correct?
If so, what are the best programs to use to support this 'ideal' code and content separated form of development on the ASP platform?

View Replies View Related

Separating Session From Each Browser

scenario:
a user submits a form, create session variables in login.asp and redirect to main.asp

session in login.asp
example: session("uid") = var

experiment:
i tried opening two browsers, and entered two different userid(uid), i also put
response.write(session("uid")) within main.asp to check if different users are displayed.

problem:
the session var from the second browser overwrites the session var of the first browser. so if the first browser "adds" something to a database, it gets the session var of the second browser, and not the first one.

question:
how can i maintain the session var from the first browser? separating each session var from each browser.

View Replies View Related

How To Retrieve Form Values, When Form Elements' Names Are (almost) Unknown?

I have a form that is dynamically generated since it is populated with values retrieved from a database. The form can of course also be submitted, which is where I run into some problems.

Since I never know in advance what the length of the form (or for that matter what the different elements' names and values) will be I don't know how to write the code in "receive.asp" to retrieve all values from the form correctly without excess use of "request.....".

I shouldn't have to write requests for every single potential element name that is stored in the DB. Please note that the form can sometimes also contain radio buttons and check boxes, even though they are not present in this short example Code:

View Replies View Related

Using Request And Request.Form

when the asp page is Request("txtName").i can use "testpage.aspx?txtName=User1" to post the value.but when i use Request.Form("txtName").i cannot use that method,what can i do to solve that problem.(as i cannot modifty the request.form syntax but i need to post data to that web page, is there any method so that i can pass that parameter?)

View Replies View Related

How To Access Variables (form Text Box Values) On Same Form?

I have a form on an ASP page that has 5 text boxes, for data entry. I am trying to get data from the text box, and pass it to a hidden text box on the form.

The hidden text box is called "MyDateTime" (a SQL date and time value). I am attempting to concatenate data from two other textboxes (one for date and one for time) to give a string like : "8/8/2004 8:00 AM" I am trying to use the following: Code:

View Replies View Related

Querystring :: Separating A String By Either A Space Or + Sign

is there anyway of separating a string by either a space or + sign,I have an sms.asp page that receives a string in this format below

http://acompany.co.uk/online/intern...text=19%2Bdavid

the last part text=I need to split into 2 parts I need to read the first part 19 and match that to the db and then deal with the name David,I have tried everything, is there anyway of doing this even if the string read text=19+david if there was a way of separating the two.

View Replies View Related

Sending Email With Values Form A Form

<%@Language=VBScript %>
<%option explicit%>
<%
MESSAGE = (Request.Form("type"))
MESSAGE=MESSAGE & vbcrlf & "Name" & (Request.Form("name"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("address"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("handphone"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("phonenumber"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf & (Request.Form("comments"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf
MESSAGE=MESSAGE & "____________________________________________"

Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From =Request.Form(email)
objMail.To = "icepricessa@hotmail.com"
objMail.Subject = "Business/Career Enquiries"
objMail.Body = ""&MESSAGE&""
objMail.Send
Set objMail = Nothing
%>

but somehow i'm not able to send the mail....

View Replies View Related

Request.Form

can anyone teach me how to use request.form? i normally search through the internet is normally request from the same page. what if i request from different page?
how can i write?


the first top page izzit i write execno = request.form("execno") ???

View Replies View Related

Request.form.

Select Case request.form("posted")
case 1
case 2
case 3
case else
end select

Here is my case statment each case has a form, which holds a varible named posted. There is a problem however, once the refresh button is pressed it &*#$# up. I need to set request.form("posted") to nothing and it would be good to know how to set all of request.form.

View Replies View Related

Request.Form

.From = Request.Form("txtAMITENTE_1")

The problem is, I always do not know what the name of the field can be. But I know that it ends with a "_1"

Is there anyway I can do it..Like a right function to check the last letter and select the fild name. So even if it is "sun_1" or "moon_1" I can use it..

View Replies View Related

Request.Form

I want to pass a Request.Form variable to an ASP form, through the url
for example lets say i have a form with a textfiled called "txtName" if i
click the submit button for example the asp page reads the content of this
txtName as Request.Form("txtName")
I want to achieve that the asp form is accessed through a URL where i can
pass the value of txtName without going to the page of the form and clicking
the submit button

View Replies View Related

Request.Form

If the value in the field in the form is like this:

<%Response.Write recordset("InstructName")%>">

When you Request.Form will it not pass the value?

View Replies View Related

Request.Form

Is there a way to name a text file with Request.Form or naming it after a variable?

I have a form with a field "name". What I would like to do is create a .txt-file called "x.txt" where x is the value typed in the box.Something like this probably really stupid attempt.

Code:

If Obj.FileExists(Server.MapPath("Request.Form('name').txt") = False Then

View Replies View Related

Request.Form

I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and nothing appears.

I change the form's method to GET, then response.write the Request.QueryString items (which I can see in the URL) and it works fine. I need to use POST, as the quantity of data from the form will often exceed the limits of querystrings. Is there something I'm overlooking? Why doesn't Request.Form work?

View Replies View Related

Cannot Use Request.Form?

I try to use script from www.freeaspupload.net for upload file. I need to store in session object the names of uploaded files but I get an error - Cannot use Request.Form collection after calling BinaryRead How can I make it? Code:

View Replies View Related

Request.form

This works fine in the CDO mail handler...
.From = request.form("Email")

I'm wondering how I can add a second variable "Name" to this line?
So instead of this...
.From = "SenderName <SenderEmail@address.net>"

I can use .From = request.form(" ? ? ")
? = Name and Email variable, how can I do this

View Replies View Related

If Rs <> Request.form

In my code I have a check Code:

If rsdx("m_date_of_birth") <> request.form("e_date_of_birth") THEN
Response.write("<BR>Not equal")
Response.write("<BR>" & rsdx("m_date_of_birth"))
Response.write("<BR>" & request.form("e_date_of_birth"))
End If

However the output
Quote:
Not equal
7/24/1956
7/24/1956
shows that they are the same.... i even checked the source to see if there were a space or something that i was not seeing
Quote:
<BR>Not equal<BR>7/24/1956<BR>7/24/1956 .

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved