Looping A Form Post?
Basically, I have a dataset I need to send to a vendors site. They have a page that will accept from form posts. What I'm trying to figure out is how to loop through and submit form data when I do not have control of the end site.
My basic idea is to have a page that will cycle through the dataset put into invisible form fields and submit to the site (many times over). Is this possible through asp?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Looping Through Checkboxes On A Form
I want to loop through some checkboxes & extract their name & value. actually i want an if statement that says if they are empty write nothing & if they arent then extract name & value of checkbox. i know how to do the if & extract the values etc but not the loop. at the moment i have really long code that looks at each checkbox tests if its empty & if it isnt then extracts the values I need. Code:
Looping Through Table Data On Form.submit
I have this form..which has a table (created from stored procedure values)..once the table is populated..i have some radio buttons (for each row of the table) and a main submit button. On clicking submit..i want to loop through the table..pick up the first <TDbeing the user ID and the value of the radio button clicked (currently I have my radio button ID set as UserID_0, UserID_1 .. etc). And pass those into a stored procedure..
Form Post
I've seen something on my logs that's not supposed to happen.pagea.htm has a form with a Select list called country as below: <select name='Country' size='1'> <option value='USA'>USA</option> <option value='Canada'>Canada</option> 'lots more countries... </select> Page B has code that references request.form("country"),and assumes that this field is nonempty as it is coming from a select list.I saw an error caused by an empty string in this country variable The User agent was IE6, and the pages appeared in the correct order in the IIS logs.pagea.htm (the page with the form) was requested with a GET method about a minute before the POST to pageb.asp, and no intervening pages were requested by that IP I would suspect AOL wierdness, but it's not an AOL IP.
Form Post From Email
We have created a new ASP file that will process a standard HTML form, write the data submitted in the form to a database table, and send us an email of the data submitted. All works OK except if we now send that form code as part of an email, the form appears OK at the receiver's end, but when you fill in the form, there is no data that is transmitted back to the asp file. The ASP file acknowledges the receipt of the form, and all that, but there is no data in the email and no data in the table. It is obviously something that is happening when it is sent as an email, but I have seen this sort of thing done before, with a form in an email, and I wonder if anyone has some clues as to what we need to do to make the form work properly when sent as an HTML email.
Post A Form To 2 Places...
Alright, I have a form that needs to post to form_process.asp However, it also needs to post to another site/, say example.com/process.asp How would I do this? The place it needs to post to is off site, and MY form_process.asp needs to save the data before submitting it to example.com/process.asp Possible?
Post Form Data
Is it possible to post form data and open an invisible window? For example, in page1.as <form action="page2.asp" method="POST" It will post the form data from page1.asp to the server, and open page2.asp. But I dont want to make page2.asp invisible.
Post Form Dyanmically
This has got to be easy, but I don't know how to do it. I have a form with an action="email.asp" I have a submitt button that when pressed submitts the form and goes to email.asp. I want to add another button that when pushed submits it to another page, say print.asp How is that done?
Array In Form Post
I have problem getting right info using array. When I post data with form: <% i = 1 %> <input type="text" name="Boys(<%=i%>)"> and retrieving the data on another page: <% i = 1 Response.Write Request.Form("Boys(i)") %> I do not see the data. If I replaced "Boys(i)" with "Boys (1)", I can see the data. What am I missing?
Retrieving A Post Form
I have a comments form that when filled in posts the comments from a text field into a database.Due to a bit of duff coding (Doh!) the database was not getting updated and i lost 50 or so posts worth ofcomments. Is there any way of retrieving the posted forms from theserver?The form uses the post method, with asp doing the work.
Post Multiple Form
I have form1.asp which contains a form which is posted to and processed by a page called process.asp.I want to create a second form on form2.asp and also post it to process.asp. On process.asp I would execute different stored procedures conditionally based on where the form is submitted from.How can I tell which page the form is submitted from? I think I should be able to have a hidden form field on my forms and post that to process.asp.Is there a better or preferred method.?Can I combine these three pages on one asp page?
Post Form Variable
I am posting a form variable to an ASP script, but when the asp script receives the variable, I don't want it to open a new web page or open in the same window. I also can't have the script on the same page and refresh the page. I use javascript to submit the form with the hidden field, and I want the variable to be processed by the asp script in the background on the server and return nothing. So essentially, i want the script to run transparently. How can I do this with asp? We run a classic environment. I am doing this because the script is a tracking script, and it's disruptive for the user to see any trace of it. I want them to continue surfing as normal.
Simulate Form Post
How do I simulate this from the server side: <form name="SearchForm" method="POST" id="SearchForm" action="http://SOMEURL/Search.ASP?Parm1=1&Parm2=2"> I have generally been posting data using: Set xml = Server.CreateObject("Microsoft.XMLHTTP") xml.Open "POST","http://SOMEURL/Search.asp?" & strParmList, False xml.Send The above is fine for passing URL parameters, but I need to simulate it coming from a form which has a name. How do I pass the form name which is used at the posted URL?
Post Form Data
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.
Form Have Two POST Locations
Is it possible to POST a FORM to multiple URLS at the same time OR Is the only workaround for this scenario to use response.redirect in the called ASP page and do a multi processing?
Form Post With MySQL As Backend
I'm using ASP as frontend with MySQL as backend, and Dundas Mailer as the email object. I'm making a contact form where the submitted datat would be inserted in the database first and then using Dundas for mail ... But I have tried to include strange characters like " ' in the message field. But return error ...
How Do You Post Form Data To Another Page?
Here is the situation: 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.
Form Post Not Passing Data To ASP???
I have IIS server installed on XP-pro. I also have Norton Internet Security installed. I can run simple ASP programs without any problem. But when I use forms with post method and call an asp in action, it does not pass any data to ASP. Request.Form method on a form field does not return any value. This code works on web hosting provider server, just does not work on my workstation with my own IIS server. Code:
Checking For Nothing Entered In An Asp Form Post
How do you check for a empty value from a form? lservice = request.form("pservice") if not isnull(lservice) then <== this doesnt work. tried "" empty string and it still didnt work. ...... I'm having problems with the fact the user didnt enter anything. The field is optional.
Question On Data Post Via A Form
I've got a question regarding data retrieved via Post. If i have a standard textfield within my form: <input type="text" name="number" size="10"> and i submit the form with the textfield left blank, when i use: Request.Form("number") what data type will it return? I need to know the data type so i can check for "", null, nothing or something else. Assume these scenarios: 1. The user is supposed to type in a number in the textfield 2. The user has no restrictions on what he can type in the textfield
Encoded Chars From Form Post
I have an application that let's the user enter text into a textbox and this data is collected on the server and stored in a database. The page is multilingual and sets Response.Charset to the appropiate for the language, for example gb2312 for chinese etc. This made all texts on the page show up alright. However, I did not change the codepage of the page so ASP encoded the post data sent to the server and I have got really ugly texts for certain languages. I have had applications before doing the same thing where the page has been able to decode the posted characters again when redisplaying them, but in this case I haven't been able to get anything meaningful from them. It seems to me that the encoded text depends on the charset used when entering the text, entering chinese characters when using iso-8859-1 gives me character codes like Ó’ which probably would be alright to convert but chinese text that has been entered in the gb2312 charset look like this Code:
Post Form To Multiple Pages
How do I post an HTML form to multiple ASP pages? I need to do two things with my data at the same time and it would be very helpful if I could spawn the processes when the HTML form is posted, not through downstream ASP handling.
Function Keys To Post A Form
I have disabled the function keys (F1-F12). I would like each funtion key to submit a form. I'm not quite sure how to tell each function key to submit (post) for me.
Form Post To Multiple Pages
Assuming the following code actually worked, I'd like to take data entered from one form and post it to two different locations. Hypothetically, I have a server in NY and one in LA that I want to get the same information. <form action="http://ny.server.com/test.asp" action="http://la.server.com/test.asp" method="post"> Name: <input type="text" name="request" /><br /> <input type="submit" value="Submit"> '''Contents of ny.server.com/test.asp <% response.write "Data saved on NY server" %> '''Contents of server2.com/test.asp <% response.write "Data saved on LA server" %>
Form Post Action Options
I have a form with several submit buttons. Each one is different. For instance, one may require the next action window to be a pop up requesting more data. Another may require it to be normal. And of course I need the request data from the form. I tried not specifying the action on the form and put it on the the submit button via the OnClick but the request data was always behind and isn't current until after the submit. I guess an easy way to think about it is say you have a tool bar and depending on which button you click it fires a different asp file but the current form data.
Passing A Querystring Variable Through A POST Form
I am passing a value to a form through the URL as follows: <A href="http://www.xxxxxx.com/orderone.asp?text="radius">http://www.xxxxxx.com/orderone.asp?text="radius" On the orderone.asp page, I am reading the value into a text box as follows: <input name="Template" type="text" id="Template" size="25" maxlength="255" class="body" value=<% = request.querystring("Text") %> 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 <form action="Orderform3.asp" method="post" name="order"> 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.
Collect String From HTTP Form POST
I have a basic form that POSTs data to a web server. The web server then replys with a string response. It goes something like this: <FORM METHOD=POST ACTION="https://www.mywebserver.com/trans.dll"> <INPUT TYPE=HIDDEN NAME="x_Field1" VALUE="1"> <INPUT TYPE=HIDDEN NAME="x_Field2" VALUE="True"> <INPUT TYPE=HIDDEN NAME="x_Login" VALUE="MyUser"> <INPUT TYPE=SUBMIT VALUE="Click here To Submit"> </FORM> The response is just a comma separated values string like: 1,0,2,3,0,Transaction Success,Etc Once I hit the submit button the server returns a string response. I do not want the user to ever see the response, but need the response string to create my own page. How do I retreive that string and use it??
Post Multiple Values For One Form Field
I loop through a recordset to return values that populate a form which the user can then edit and save. However these fields need to be validated first to make sure the data entered is correct. I have a Firstname field that returns 3 records from my recordset which means when I try to validate, I get an error as the page doesn't know which of the 3 to use. I believe I have to do it through an array, but have no clue how as my efforts have failed
FORM POST Operation Invisible To Users
We've got a webserver with an ASP application on it that needs to be able to send e-mails when certain actions are performed. However, due to a funky network setup, the server is (and will continue) to be unable to send mail via SMTP, so, in the meantime, what we want to do is redirect the mail message to a formmail.cgi script on a Unix box. Now, the e-mails have to be dynamic, so hard-coding scripts is out of the question, and there's no way the Unix box can talk to the database on the IIS box (It's a long, convoluted story, but that's the way it is). So, my question is, does anybody know off the top of your head what the protocol is for doing an HTTP-POST operation behind the scenes? Ideally, I want to write one global SendMail function, and just pass the Name/Address/Message variables into it.
Post Form Data To A Modal Dialog Window
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??
Post The Form Data And Open The Page As A Modal Window
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. <form action="http://server2/page2.asp" method="post" target="_blank"> Any ideas?
Post Form Data To A Modal Dialog Window With Desired Height And Width
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??
Re-submit A POST Immediately From A Previous POST
Is there a way to 'force' a submit on a form with out actually allowing the user to press a button ? For example... step1: A from is filled out by a user, then they click the submit button. step2: The form is 'post'ed to an ASP page which writes the values to a database. So far No problems. But.. step3: Now I want to 'post' these values again to another page without any user interaction. My ideas were: 1) I know you can get the form values from Request.Form("myVar"), so I thought of making a 'dummy' form and setting the 'values' of the form variables to these Request.Form("myVar") valiables, but I don't know how to 'submit' them to another page again. 2) Is there some type of 'submit' command in ASP?
Can I "POST" With ASP And No Form?
I am trying to set up a site that requires user log on, without using sessions variables. I don't want the users session to timeout. I know I can do this with forms on every page, and hidden form variables fields... But any user can right click and see the form values. Is there any good way to keep track of data from page to page without using: cookies session variables hidden form fields ????????????????? I suppose I can write their session ID to the database, along with whatever data I want. And then delete all the data that exceeds 24 hours on a daily basis....but that just seems like a lot of work. How do most sites do it? What is the common, or "industry standard" way of doing it? It seems like ASP should have a way of POSTING data to the next page????
Method="POST" Does NOT Work With Enctype="multipart/form-data"
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?
ASP Looping
I have a database with many fields. One of this field is of type memo which contains some bullet points seperated by # sign (something along those lines). What I have is this code which gives me a table with one row and as many columns in the split array. Code:
Looping With Asp
I am trying to loop through my database to display a picture. That is no problem. Where I hit a snag is this. I only want three pictures then break to a new row and three more, etc. Any ideas? What this does is display one record. Code:
Looping
Is it possable to exit a loop in asp.
Looping
i got a problem regarding abt several looping running at the same time. I wanted the 1st loop to run once and then the 2nd loop to start running after the 1st loop ran once.. but the coding I do doesn't seem to be able to do that. Can sum1 teach mi how to do it? The coding:
Looping In ASP
I am working on an asp page that goes to a rs to get data. I need to run a loop that pulls the data line by line until it is at the end of the database. I could do an Until loop, but I don't know how many records are in the recordset. So I suppose it should be a do until end-of-file?
Looping In ASP
In my arrary ListSong(), I have song names like (Song1.mp3,Song2.mp3,Song3.mp3,.....). If the user selects more than one song, it should play one after the other. I want to do some looping for the <embed> tag. Here is my code: <EMBED SRC="Songs/<%=ListSong(0)%>.mp3" VOLUME="50" AUTOSTART="true" HEIGHT="80" WIDTH="415">
SQL Looping
is there anyway to do a loop with an sql command in? Ive created a message board type of thing but its got the option to delete unwanted messages. next to each message there is a lil checkbox with the Record ID for the message as the name tag, what im trying to do is when a user clicks say 3 messages to remove it puts the id's of the checkbox's clicked into a query string or something and then loops deleting the messages in the database.sorta works like this Set MyConn = Server.CreateObject("ADODB.Connection") MdbFilePath = Server.MapPath("databases/conkers.mdb") MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";" messages = request.QueryString("ids") for each value in messages do mySQL = "DELETE FROM messages WHERE ID = '" &messages & "'" Set RS = myConn.Execute(mySQL) loop
Post Data, Then Post Again..
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?
Looping Through A Recordset
I have a recordset which writes out a table. As it is constructed now it loops through and repeats every record, but i want the last two rows to only appear once, but when I try to move the rsProd.MoveNext to where I want the loop to stop I get an error msg saying: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. Code:
Looping Through Folder
I have a folder with about 40 swf training movies. I want to loop through the folder and display the titles of the movies and make them links.I just need help getting pointed in the right direction to make this happen.
Looping Issues
I've got an Array that has split a text field in an Access DB. This Array is now: Array(0) = 1 and Array(1) = 3. I have another field in another table that has a number and then the name associated with that number.I am wanting to display the name associated with 1 and 3 from my DB but a Do Loop isn't working. I presume because after it displays Array(0) (which it does well) the Looping condition is no longer true because there is no "2" in my array, it skips to 3. So Array(0) works because its true, but then it stops because there is no two but does not pick back up with Array(1).
Looping Through Database
I am working on creating reports from an access database. I am trying to populate a table created from the one-to-many relationships in the database. In one column a name appears more than once because it is related to multiple records. When I display this information I would like to only show the name once in one column but show all of the records it is related to in another. I have attached a spreadsheet the better explains what I am trying to do. The report is written asp and I have been using loops to write the data to the report. I have also attached the code I am using. The report uses values that the user selects from a map. Then it selects the same values in the database.
Looping Thru Array
I need to look at each element in an array to write it to the web page, one element at a time. The previous page contained a form of dynamically created checkbox sets. The number of checkbox sets will always be unknown. Anyway, here's my question: I've tried different code (due to circumstances that would be to lengthy to get into here, I need to use vbscript, be able to use javascript within vbscript code. Here are examples I've tried and the results: Code:
|