I have a web form that users input answers and when submitted I want the ASP code to place the user inputs into certain locations of a HTML form. The form is then automatically opened in a new window and the user can then view, print or save the HTML document. I don't need the data to be saved or stored in a database, just placed in the HTML document. I can create the form document in HTML or PDF whatever is easier to work with.
Can anyone provide a small sample of this code, once it works I can modify as needed.
I have ASP code and a form created and can supply the code if this will help but I thought it would be to much to post.
Thanks,
JR
6 8019
I have a web form that users input answers and when submitted I want the ASP code to place the user inputs into certain locations of a HTML form. The form is then automatically opened in a new window and the user can then view, print or save the HTML document. I don't need the data to be saved or stored in a database, just placed in the HTML document. I can create the form document in HTML or PDF whatever is easier to work with.
Can anyone provide a small sample of this code, once it works I can modify as needed.
I have ASP code and a form created and can supply the code if this will help but I thought it would be to much to post.
Thanks,
JR
You can use Scripting.FileSystemObject and store your data in simple txt files, when you needed that you can simply use that files with asp code to retrive your data.
If you don't need to save the text, just point the first form to an asp. For example, if you have a text area in your original form named "myText" and a select named "mySelect", the ASP to which you send the form could look like this: -
<form>
-
<input type="text" value="<%=request.form("myText")%>">
-
<select>
-
<option value="herrings"
-
<% if request.form("mySelect") = "herrings" then response write "selected" %>
-
>Herrings</option>
-
<option value="anchovies"
-
<% if request.form("mySelect") = "anchovies" then response write "selected" %>
-
>Anchovies</option></select>
-
</form>
-
Good luck. Please let me know if this works for you.
Jared
Or I guess you don't necessarily want the response in a form, right? -
Value of "myText": <%=request.form("myText")%>
-
Value of "mySelect": <%=request.form("mySelect")%>
-
Jared
Or I guess you don't necessarily want the response in a form, right? -
Value of "myText": <%=request.form("myText")%>
-
Value of "mySelect": <%=request.form("mySelect")%>
-
Jared
Thanks for the reply... I want my on-line form to populate fields in a html document. When they submit the on-line form the html document opens in a new window and allows the user to view and print the document with the information supplied with the on-line form. I have code for this but its not working. The file is called "control.asp" and the form is "form.tpl" I think everthing is created I just need the line of code that calls the control.asp and where is it placed.
I can supplied the code if it will help... thanks for the reply
it should be in the form tag: -
<form action="control.asp" method="post">
-
Jared
it should be in the form tag: -
<form action="control.asp" method="post">
-
Jared
Thanks, we'll see if it works and i'll keep in touch...
Sign in to post your reply or Sign up for a free account.
Similar topics
by: pizzy |
last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make
any mistakes.
PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see
"TAGSELECTED") to print my textboxes (see...
|
by: pizzy |
last post by:
I am having a problem with the last results. I can't seem to be able to
get the input2A and input3A to appear. I don't seem to have a problem
with the show and hide after a number is entered and...
|
by: Patrick |
last post by:
I want to define a set of web-form templates in XML and render the equivalent
web-form with ASP.NET, then process any input server controls on the form.
Reading the XML file from Page_load is...
|
by: Mark Winter |
last post by:
Hello,
I am wondering if someone could point me in the right direction to
figure out how to create a dynamic form. I have been developing
programs in perl and oracle and have recently switched...
|
by: Nate |
last post by:
Good Morning All,
What we have is a dynamic business object that has varying numbers and types
of properties. What it models is a generic saleable product. Not all
products have the same...
|
by: jedimasta |
last post by:
Good evening all,
I'm a relatively new to javascript, but I've been working with
ColdFusion and PHP for years so I'm not necessarily ignorant, just
stuck and frustrated. Using ColdFusion I'm...
|
by: Guillaume BRAUX |
last post by:
Hello,
What I want to do is to add a userControl to a form class witch is a
different class from the one the button is generated.
For example, I want to instanciate a label in "class1" and add...
|
by: Brad Everman |
last post by:
I have an HTML form that passes arrays of values to PHP. Basically, each
row of the form tracks three separate values for processing. I have a JS
program that will dynamically add (or delete) rows...
|
by: Tarscher |
last post by:
hi all,
I have this seemingly simple problem. I have lost a lot of time on it
though.
When a user selects a value from a dropdownlist (static control) a
dynamic control is generated. I have...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |