Passing Text Areas In Asp
I hav an online learning system with a questionaire that emails relative people with the results and also outputs results at end. the input is into textareas and it is being passed via
response.write<input type="hidden">
i.e all data is passed through each page to the last page. At the end only the last pages data is correct, all previous pages have only the first word.
i.e computers annoy me -on page 1
would be:
computers -by the time it gets to page 4 . Is their a restriction in VBScript for passing data more then once.
View Replies
ADVERTISEMENT
I have a asp page the posts to itself, then redirects to
another page, passing all the form information in the url.
when I redisplay the form information on the next page,
the text area info from the first page is being cutoff.
It only gets the data up to the first carriage return.
eveything else is cut off
View Replies
View Related
I have 3 Text Area inputs in a form and getting all the values through request.Querystring.the problem is when I submit the form, there is no action happening i.e the form is not getting submitted.But if I have 1 Text area I am able to submit the form. Is there any way I can update the information using more than 1 Text Area.
View Replies
View Related
I'm trying to store the results of a rather large form into an access database. The problem I'm running into is it seems that my memo slot is only holding one line of text. I.e. if the user filling out the form presses enter to move to the next line in the textarea field on the form, the asp file that saves data to the database only grabs up to that first enter. how to overcome this error or know of a faq I can read that might teach me how?
View Replies
View Related
I'm trying to have a user enter the quantity he wants to order in the text box and pass all the parameters to a sub called "add" on the same page. I can't figure out how to pass the quantity entered to the sub. Code:
View Replies
View Related
I'm looking for a way to print a page from the browser using asp. The page generates a table with paging from an access db. I would like to be able to set up the print area so it doesn't break up the records when printed.
i.e:
--page 1
Schnuck's---Tim Rogers---210-234-5587
Schnuck's---Bill James-----210-333-0987
Schnuck's---Sam Shepard-210-213-2177
--page 2
Kroger------Betty Thomas---314-222-9987
Kroger------Ryan Anderson---314-333-7890
Kroger------Jeff Blodgett------314-2213-9888
View Replies
View Related
my database has a table with a primary key that is both text and numeric
(seems like a bad idea now but there's 1000s of records so too late to change it ((((
basically i want to pass this from one asp page to another using the ?ID=house_ID
house_ID being the offending key
the other end i pick it up using lngRecordNo = Request.QueryString("ID")
and then my sql statement is as follows ...
strSQL = "Select * FROM House WHERE House_ID LIKE " & lngRecordNo
but it doesn't work .... i'm getting the rather generic error message of Too few parameters expected 1.
anyone got any ideas
also if i want to use date in a where clause how do i format it i've tried < " # Now() # ";" but it doesn't like it because of the quote marks inside of the sql statment.
View Replies
View Related
I have an asp page that allows cdont mailing of form field values to persons matching slected criterea in their profile.
Works good if the user goes straight from the form to the email-making asp.
Then the user asked for a proofreading screen and what seemed simple took a bad turn.
When I try to pass from the proof reading screen to the asp that actually sends the email I only get the first word. as soon as a blank is encountered in the text it thinks it it done. Code:
View Replies
View Related
Is there any way I can pass the value in a disabled text field without creating a hidden field?
View Replies
View Related
i have 2 text box whom data are generated randomly, how can i get this data and pass it to a access database using ASP?
View Replies
View Related
I have a date in a frame/page that i want to pass to another page. I can succefully pass a static value, i just can't pass a value from a text box.
I tried to make everything public. I believe that Me. may only refer to the page that is orginating the action. But how do I pass the text box. Can we assume since I can pass the static value, that the issue is how I grab the textbox value Code:
View Replies
View Related
I have a string (holding a book title) that contains an apostrophe. This is generating an error when I try to pass it through sql into a table of orders. I retrieve it from the form with
title=request.form("title")
I'm trying to pass it through with: '"&rs("title")&"'
This isn't working. I tried taking out the ' ' but that didn't help, nor did elmiminating the " " help eather. Can someone suggest what might be the problem?
View Replies
View Related
how to i passing values to text field?
<input type="text" name="Usrname" size="20" value=<%= fullname %> >
i knew this is wrong.. but how do i solve this problem?
View Replies
View Related
I am trying to pass a value into the text field on selecting the option in a drop down. The code works if the 'For' loop is not included. What should I do to make it work inside the loop? Code:
View Replies
View Related
If I m using a simple code like this;
Set RS = Server.CreateObject("Adodb.Recordset")
strsql= "SELECT Images from product where status = 1 ORDER BY [Supplier]"
RS.Open strSql,Conn,3,3
If RS.RecordCount <> 0 then
While not RS.EOF
Images= RS("Images")
RS.MoveNext
WEND
RS.Close
While using this code "Images" is an array..(a collection of imagesname from the table "Product" whose status is 1). Now I have to use first 4 images at a time among these collection of Images in the different specific locations in a page in the same time.
Like Inshort (For example)....
View Replies
View Related
I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.
View Replies
View Related
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
View Replies
View Related
I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?
<textarea name="textarea" cols="35" rows="5"></textarea>
In the text area above, can I say limit the person filling in the text area to say 100 characters?
View Replies
View Related
I have a form on asp page that pulls info from a DB when the page loads.
It them puts the info into text boxes on the page that are editable by the
user.
The only problem I have is say in the description text box it should
read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP"
.. It does this on all the text boxes? I can't seem to figure out why it
is doing it. Here is the sample code:
With quotes around <%= vdesc%>
<td><input name="desc" type="text" id="desc" size="45" value="<%=
vdesc%>"></td>
And I tried it without.
View Replies
View Related
I have text in a field coming from a database. The text has various
forms such as:
text1
text1 or text2
text1 or text2 or text3
text1; or text2
text1; or text2; or text3
etc...
how can I parse this with a reg ex? I tried this:
(.+);? or
but it only captures 1 submatch (text1) and only if theres an "or"
after it
I'd like to get 1 submatch for each piece of text separated by the
"or", just the text itself if there is no or.
Anyone know how to do it?
View Replies
View Related
I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.
View Replies
View Related
I have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?
View Replies
View Related
I have a search page, after search returns value I want to display fields in text box instead of table.
View Replies
View Related
I need to click on a button and pass through a variable with a number
associated to it to other form
That is. I know I can do something like this:
<FORM action="http://somesite.com/prog/adduser" method="post">
<INPUT type="submit" value="Send"> <INPUT type="reset">
</FORM>but.. can I do something like this?<FORM
action=http://somesite.com/prog/adduser?data=14 method="post">
<INPUT type="submit" value="Send"> <INPUT type="reset">
</FORM>
How do I do it?
View Replies
View Related
I have some code which I use server.Execute. In the included code for
the server.execute, if I use a Request variable I get an error stating
that I cannot use request after UPL but If I change all the variable
names from request
to upl, it tells me that UPL is not defined.
It seems that the page is passing the form values for request but not
UPL
View Replies
View Related
I have got a news section which i am working on i can get all the news items to display the short description and title with the link to the full item but when i click on any of them it takes me to the very first record in the database. i have been told that the problem is with the ids not being passed through properly but im not sure.
View Replies
View Related
I have a small problem.How can I pass value from form thru a few pages. I try with hidden field but my second page just validate and redirect to other one and when I use Request.Form("field") it's nothing coming back.
View Replies
View Related
I am creating a simple news WAP site which uses a database. The database consists of three columns, storyid, storyheadline and story. The first page outputs the storyheadlines. When the user clicks on the headlines, they are taken to another page. The storyid is passed through the url (stored as storyno) and the next page loads the story which matches the headline. So basically, I need to know how to correct this:
SQL = "SELECT * FROM gmscwapstories WHERE storyid = <% Request.QueryString("storyno") %>"
This doesnt seem to be working.
View Replies
View Related
how to properly parse this so "Cute & Cuddly" passes to the calling page. I need to pass the & sign.
<option value="search.asp?category=Cute & Cuddly&subcategory=brown">
View Replies
View Related
I have a members only section of my site, which is protected and works fine, but i want to be able to alow the user to update their profile. Problem is, i don't have anything to pass in the url.
In the member record update section of the admin, i have the url, as it leads on from the chosen members id....eg...www.xxxx.com?id=2.......like that. But where the user updates their profile, it has nothing to send data from...eg...a form/recordset. Could this be done by storing it in a cookie or something?
View Replies
View Related
I'm trying to display data from three tables. The main table has a Record number and the other table contain the same number. I need to pass the parameter value (record number) from the main table to the other tables (table2 and table3) and display there data on the same web page.
i can get the three recordsets open, but I can't select table2 and table3 by the record number from the main table. I also need to be able to move through the recordset one record at a time backward and forward.
View Replies
View Related
I am trying to pass a value in a way that after a user has successfully logged in to an ASP app through a form, their login id would be passed to a welcome page.
for e.g. after their login they get to a page saying "Welcome User what would you like to do? " This is probably simple but I am new to ASP,so how can this be done ?
View Replies
View Related
Is there a code, or something that scrambles the value being passed fromone asp page to another??
what I mean is this:
if i want to pass a value from a database (record id #721) from my page records.asp to recordview.asp
it might appear like this in the browser window, or when u highlight the link on records.asp:
recordsview.asp?K=751
I don't want users to see exactly what record number is being access... so I'd like it to show some garbage in the browser like
recordsview.asp?@$@#$=DSFSD+jklsjkld
you get my drift...
View Replies
View Related