so far it works fine. It shows the value in the text box on the page. I am trying to post this page with all the form fields to a new page that emails all the variables that are on this page. The form tag looks like
In orderform3.asp, i am requesting the values for all the form fields as follows before emailing all the fields to myself:
strBody = strBody & Request.Form("Account_Name") 'strbody is the variable that adds all the form fields to the body of the email strBody = strBody & vbCrLf strBody = strBody & Request.Form("Contact_Name") strBody = strBody & vbCrLf strBody = strBody & Request.Form("Template")
Here is the problem...I am getting the email with the values filled in except for "Template" and I cannot figure out why. Is there something that I am doing wrong? i have to mention that there is no DB behind this site...it is just a static web site with an email script in it.
Does anybody have the syntax to post form data to a CSV file? On submit, my form page will post to another asp page that will actually handle the data being dumped to a CSV file. I just can't seem to find the correct ASP syntax for this.
1. User fills in form and hits submit 2. Some processing is done with the posted data using ASP 3. The posted form variables now need to be submitted to another script which only receives POSTed data.
How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.
I have a form that has the option to upload a file at the bottom. If you select a file it works fine but if you leave file selection blank the forms bombs. This is not how I want it to work. On the form you need to use ENCTYPE="multipart/form-data" in the form tag.
On the processing page I need to use Set to assign a variable to the form data. I tried using IF on the variable assigned to the file path but it bombs out telling me "This function is not supported". Is there any other way I can check to see if curQes has a value assigned to it?
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp. Any workarounds to my problems??
Is it possible to post the form data and open the page as a modal window? Because when I do the following, it will open page2.asp in a new window, but I still able to manipulate page1.asp. I want to make page2.asp as modal window.
I am using enctype="multipart/form-data" in my form.
Everything has worked for past 2 years and I have not changed the code in the slightest. (1)
I pass some value to another page and this has worked for as long without any tweaks needed. (2)
Now (2) no longer picks up the values submitted by (1) for some unknown reason. If I take away the enctype, the data is passeed through but it's wasted as the form is to upload a file.
Would any change on the server or network be to blame? What do people suggest?
I have a page "entry.asp" where a user enters data into a form (named "form"). I want to submit the form and have the data passed to a frameset with two frames (frame1.asp and frame2.asp). I need the posted data from the form to be accessible to frame1.asp and frame2.asp.
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp.
I am trying to pass some data through a form to a mailing script.
The form entry is ...
<input name="width1" type="hidden" value=<% = rsMoreDetails("width1")%>> and is picked up in the mailing.asp as
width1=Request.Form("width1") and the mailing script uses...
body_text = body_text & "Option 2 - "& width1 & vbcrlf The problem is that when the mail is sent and the value is say "14 inches" I seem to loose everything after the first space so it only sends "14"
Am I doing something wrong or this the way it is and if so is there a work around please?
I have a resume form with four separate pages,and on the last page when you submit the form I need it to gather all the information inputed to be sent to an email address.
I am trying to create a form where the user can check a box within a form and the address will fill in automatically from a previous address in the form, without submitting the form.
I have a page that calls itself using a form. The form has two select elements. In the sql statement I am attempting to match the values of the select element to populate a recordset.
The two fields in teh Access db are of type Text and of type Integer. What baffles me is that one sql statement works fine and the other returns nothing. I am having the issue matching on the bedrooms.
In the first statement I took out all other doo-doo and just matched bedrooms = request("bedrooms"). On the other one I used p.bedrooms but it keeps turning up empty. Code:
I am using an asp page (upload.asp) to gather information and to upload files to the web server using SoftArtisans SAUpload Tool. In the first page (upload.asp), I have a form for gathering info with the following: Code:
I'm posting a form from a php page to a page that's asp. I want the url parameters sent to the asp page to be the defaults of the form. I've never used asp so I'm not sure how to do this.For example: www.test.com/test.asp?clientid=123
Text field in asp/javascript form called "client" should now default to "123".
In php I would have put this as the default value for the "client" field in the form: <?php $_GET['clientid']; ?>
What would be the equivalent way of doing it for asp?
I have page1.asp with a form on it, then this goes to Page2.asp, the data is processed. I then want to access the same from data on page3.asp. Is there any simple way to transfer all POST requests to page3.asp without having to put them into session or Query-strings?
I having trouble with this action cause I want the user to be able to use the back button and the submitted data should be still in their form. So I the user send invalid data he can back browse and change the invalid data. I use method=POST cause its a lot of data i send between pages + client is IE6 ...
My form has mixed fields in it, one of them is a file field for picture upload when i submit my form via method="GET" i can retrieve my form data with Request.QueryString() method but as then I loose my file, but as soon as I switch to method="POST" and use Request.Form() method i get nothing unless I remove enctype="MULTIPART/FORM-DATA" at which point I loose mi file also... What is causing this? is there a different enctype i need to be using?
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
i have an asp page with a form that posts to itself. (the action of the form is the same page the form is on). i validate input and dont accept it if there is something wrong with it. problem is that when the form is submitted, and i display the error message, the data the user typed in the box is gone. i work around this by setting a session variable as soon as the user hits submit and store the data the user typed. then for the default value of the textbox i have <%= Session("var") %and that leaves the users data in the box for them to edit. is there a better way i could do this?
Is there a way I can POST data from a ASP page to another page? I am not trying to POST data from a form to another page, but would like to create the POST headers from different variables, and then send it to another page
I have a temporary file being created in an order processing system. After the user agrees the data is correct the data needs to be written to a permanent table. There are usually 100 or so records. what is the best way to do this? the fields names are not the same either and the new records also need to be updated with the price from the parts table.
The price comes from the parts table. When I link the parts and temp tables and try to insert into the permanent table, I am using a loop and it's taking FOREVER.
Is there a way to see all the post data that is sent an .asp page. I am working on a page that is being returned from another application and I would like to know what data I can work with.
I have use an affiliate link on my site, and I did not like it because it did not have my sites banners on it, so I asked the permission of the other site to change the display and they aggreed..
The affiliate site has 4 pages of forms linking to each other so it goes something like form.asp > results.asp > results_details.asp > confirm_details.asp >>>>>> proceed to payment..
I wanted to grab the each page page using the XMLHTTP object and then the post of the form to a local pages on my site.. The local pages would grab the request.form string and then using code something like below..
on my page quote123.asp, I have <%=request.form%> and I never see the string "select=All" - why is this... Code:
What is the maximum size of POST data? A page on the ASP FAQ web site (http://classicasp.aspfaq.com/forms/...parameters.html) is confusing me: "While GET is limited to as low as 1024 characters, POST data is limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. Each name/value is limited to 1024 characters, as imposed by the SGML spec." Does this last sentence mean that no form field can submit more than 1024 (or 1024 minus the length of the form field name) characters through POST?
What I'm doing is using the same page to process data as well as display the forms, the form action goes something like Action="me.asp?action=someting" and the data is sent via POST. but when someone wants to refresh that page, it prompts to use the same values again which I dont want to happen.