Problem Posting Data From Asp Form

I am running IIS5, Win2k Server, and .Net Framework 1.1.

For some reason asp forms will not post data. So I have
a form with a text box. The form's method is set to post
and I have a submit button.

The weird thing is that the page works fine without using
SSL and/or the FQDN for the server. Code:

View Replies


ADVERTISEMENT

Posting Form Data To A Popup Window

Does anyone know how to post form data to a popup window either by using ASP or JavaScript? I have a form full of inputs and I want to open a popup window where the processing can take place.

View Replies View Related

POSTing A Binary File Using Multipart/form-data

I'm trying to setup an ASP page to POST an image across to another page- essentially simulating what a browser does when you use <input type=file> in a HTML form.

I'm able to correctly setup the headers etc and do the POST, but I'm unable to include the binary data of the image.

The only way i've been able to do it is if I base64 encode the image. I'm using MSXML2.ServerXMLHTTP to do the POST, and I can't seem to do the .send with a form body that includes the binary data of the image. Code:

View Replies View Related

Posting Data To An API

I'm working on a shopping cart that uses PayPal when the user submits their information 3 things need to happen on the same page:

1. User information gets saved in a database
2. An e-mail is sent out
3. Variables are transferred via a "POST" method to the PayPal API

I've successfully made it through the first 2 but the 3rd one is killing me. How do I do this? The only way I can think to do this is with the response.redirect but it can't be a GET it needs be a POST. Any thoughts?

View Replies View Related

Data Posting

welll I'm using ASP 2.0 =)
I'm trying to do the automated form posting and submition.
What I got is Excel file with the data that I need to manually enter to
the form...
What should I use to maximumally automate it =)

View Replies View Related

Posting Data Using XMLHTTP

I am trying to post data using xmlhttp object.

The data Iam trying to send has "&" in it, like - xx.asp?part=tm7&t6

Somehow the data doe not reach to the page correectly.

I also tried -

xx.asp?part=tm7&amp;t6

But still it does not reach.

In my final page when I retrieve request.form("part") -

Iam getting only tm7.

View Replies View Related

Posting Data To Two Pages

I have a developed asp page where user inputs the data and it will be submitted to another page. I want the data submitted to two pages of different application.
for example the code:

<form method="post" action="test.asp"&"test1.asp" name="processData" onSubmit="return ValidateAndCreateInstanceName( );" >

with the above code, i am getting error.with one form, how can I submit the data to two pages??

View Replies View Related

Posting Checkbox Data To DB.

An insert page and an update page will not let checkbox data be posted to the database. I am using Dreamweaver for all code with no tweaking on my part. If i remove all checkboxes from page i can post from both pages.

I've made sure that there is no data type mismatch. I do have another DB table which i can post to without incident. It seems i have exhausted my ability to solve this one.

View Replies View Related

Posting Data To Page

I've created a form that posts data to a script and the script checks the values. If the values are invalid, I want to be able to "post" the data back to the original page for them to be picked up. Is this possible?

I can't use JavaScript for client-side validation as the data to be compared against is in a database. I don't want to use session variables as they are server intensive and can expire. And I can't send the variables through the URL as some of the fields are textareas and could hold long values...

View Replies View Related

Posting One Form

My employer uses an onjline application for new hires. Currently they fill out a form which goes to ../cgi-bin/formail.pl
Of course this then email the application to them.
Once they recieve it it looks fine but when the go to print they say it prints 4 or 5 pages of garbly gook.
I havent seen this yet but i was thinking that if i could post the form to two seperat files, the fromail.pl and an asp page to insert it into an access table to later view with another asp page they could view the apps online and just print form explorer if i designed the page right
i have never done anythig with pearl before. Can I post it to an asp page then to the formail.pl. instead of posting it to two pages.

View Replies View Related

Posting From One Form On A Page To Another Form

have one form on an html page post to another form on the same page? I would like to have the information (all of the second form) hidden until the post is sent to it. Is that possible too?

View Replies View Related

Posting Form Variables

I have created a form, which has hidden fields, which are to be passed to a payment gateway using the POST method.

My problem is that the variables in the hidden fields do not get passed on to the payment page when the form gets posted. The payment page comes up empty.

Does anyone know why this is happening? Code:

View Replies View Related

Automatic Form Posting

Posting variables from an HTML FORM, via
the Request.Form function on the receiving
ASP page is great.
But how can you POST a Form variable to
an ASP page -- without a human pushing a
Submit button?
An ASP page that can decide when to POST
and send the Form vaiables, but out without a
human in the loop.p.s. the reason I do not want to use a
Request.Querysting is because I do not
want the user to see the values at the
tail-end of the URL (?x=private).

View Replies View Related

How Do I Find Out Who Is Posting To My Form?

I have a web page, where users fill out their name and address, and I send
them a free catalog.

The problem is that someone is filling my form out about 100 times a day
throughout the day with peoples information, who don't want the catalog!

I have tracked the ip address (all different) and the http referrer, which
doesn't really tell me much. and looked in the iis logs, which lists the
ipaddresses.

How can I find out who is posting to my form???

View Replies View Related

Posting Form Results

I am trying to post the results of one form to another target .asp page - I do not know how to write the code. I have ran through tutorials etc., and my ISS 5 documentation - basically this is what I am coming up with. Please confirm if this is correct code used on the target page - the page that rcieves the form results.

<form action="CSSI-CMS2.asp" method="GET" enctype="multipart/form-data" name="e-design">
<%
Response.Write(objItem & " = " & Request.Form(objItem) & "<br>")
Next
%>
</form>

View Replies View Related

Special Characters And Posting Form

When I post a string containing special characters (& #145, & #146, & #147, etc. for single and double quotes -- spaces added so they display correctly) through a form and write the contents on the next page via Request.Form, my special characters have been replaced with the characters they represent. Does anyone have any idea why this is happening, and more importantly, how to avoid it?

View Replies View Related

Posting Form Fields With XMLHTTP

I am trying to post a large XML string to another url. I have been doing this previously in cold fusion but am trying to get all of my code up to date and it wont work in ASP. It should be very simple:

xml = Server.URLEncode(refi1_doc)

pingUrl = "https://xxx.xxxxxxx.com/b2b/incoming.asp"

set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "POST", pingUrl, False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlHttp.Send xml

This should just be URLEncoding the xml document and posting it. I am getting a "Bad XML" response - line 0, position 0 -- but I KNOW the xml string is well formed -- have already tested that. The guy on that end who was trying to help me stated that the string MUST be in a form field named "xml" (all lowercase) and it has to be a post -- that's it! Isn't that what I am doing? I even tried adding to the end of the URL:

pingUrl = "https://xxx.xxxxxxx.com/b2b/incoming.asp?xml="

Nothing is working. How do I specify that the data being sent is in a form field called "xml"? Anyone know what is going on here?

View Replies View Related

Auto Submit Form Keeps Posting

When a visitor enters the basket section of my ecommerce application he has to press on a button “click to view basket”. The submit button posts the users IP address back to the form. Below is the code:

<form BOTID="0" METHOD="POST" action="ProducsTotalBasket.asp">

<input TYPE="HIDDEN" NAME="Remote_computer_name" VALUE="<%=Request.Servervariables("REMOTE_ADDR")%>" size="20">

</form>

I have tried to automate the submit function by placing the following code into the body of the web page:

<BODY onLoad="window.document.postform.submit()">

This works, in that the records in the basket are displayed automatically without clicking on the submit button however the screen starts going berserk and the form keeps posting to itself i.e. the “ProducsTotalBasket.asp” page mentioned above. It simply won’t stop & keeps looping and posting over and over again.

View Replies View Related

Posting Unicode Form Values

I've encountered is in a UTF-8 test script. Here, the input - a single two-byte Cyrillic character (as reported by Javascript in the originating form) is posted to the receiving script, where IIS or IE has expanded that to a 4-byte field. -- while the display of that character is correct. What encoding is the latter?

View Replies View Related

Posting Data To Credit Card Processor Without Showing Their Page

I've been setting up an online payment system for our site, and it all works fine except for one part. When it submits to the merchant's site, the customer is greeted with a blank page for a few seconds while it verifies the card. Then it redirects to our site.

Is there any way to do a form POST to another site without actually making the browser go to that page?

View Replies View Related

Retain Values On The Form When Posting Back To Itself

I have simple form where user enter the search criteria and the form is
posted back to itself and runs a query based on the values that are entered.

Everything is expect the values that the user enters disappears everytime
the form is refreshed when posting it to itself.

Is there anyway I can retain the values that were entered on the form?

View Replies View Related

Automatically Posting Form Values When A Page Loads

is there a way in ASP to automatically submit a form and its values when a page loads ?

if not is there any way round this scenario. i want to have a drop down list of options depending on which is selected will depend on where the form is submitted to.

View Replies View Related

Posting A Form In The Background And Accessing The Response As A Variable

I am using a new payment gateway for one of my sites. One of the options they recommend for submitting the credit card info involves submitting a form in "the background" with a post. They then return a comma-delimited string, which I can easily parse and act upon.

How do I submit a form in the background? I'm sure it's simple, I just never had to do it so I never learned how...

View Replies View Related

Passing Form Data Using ENCTYPE="multipart/form-data"

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?

View Replies View Related

Posting Form Variables From Site A To Site B

I have to pass form data from my site to another organizations site using POST method... how exactly do I do that? Im familiar with how to do it within a single site/domain, and cant use querystring... I dont know where to begin.

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

Submit Form Data And Refresh Form

I have a series a forms that submit data to different tables in a database. As it stands, when a user completes FORM 1 and clicks the SUBMIT button, the FORM 1 data is submitted (action = form2.asp, method = post) to ASP code at the top of FORM 2 (request.form("form1 field name") etc...), and submitted to the database with SQL code, also at the top of FORM 2(INSERT into...). Hence the submit button on FORM 1 directs the user to FORM 2, and submits the data which is exaclty what I wanted. However, I now need the users to submit multiple sets of data with FORM 1, and direct them to FORM 2 once they have finished using FORM 1. Most importantly, I need to pass a few parameters from FORM 1 to FORM 2, and have these parameters submitted to the database.

My main problem is getting a fresh form1 after submiting the same form1, in preparation for anoter set of data using the same form. Basically, the database has 'one to many' relationship tables. Form1 and form2 are both populating the 'many' tables, so that each form needs to be filled-in several times while retaining the key field of the 'one' table. At the moment submiting form1 takes me to form2. Is is possible to submit the data to the database, get form1 back again to submit more data, as many times as required, then click another button to load form2 when the user is finished with form1?

Can anyone please give me some pointers? or at least explain the concept of what I need to do. I am a novice and it's taking me a while to get to this stage. Any help will be greatly appreciated.

Is it possible to post FORM1 to itself and insert the data (i.e. place the request.form at the top of FORM 1) If so, how do I direct users to FORM 2 while retaining my parameters?

View Replies View Related

Form To Form Data Transfer

I am a new programmer seeking a right way for transferring data between forum to forum, as i am creating a site wich have a page keeping 20's of server controls like drop down list and text boxes the value of ddl2 changging on change of ddl1 and displaying its corresponding value in text box and i have 10 rows in this way and i wanna display all selected values of server controls in next page as report.

View Replies View Related

Passing Form Data Within A Form

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.

View Replies View Related

Request In Form Enctype="multipart/form-data"

I need to get some Request value from a Form... but this form is enctype="multipart/form-data" (to upload files) and I if I use the standard syntax Request("nameField") I don't get any value.

View Replies View Related

Form Data

I have a form which dynamically loads questions and answers depending on dept.
So the form input type has a value field of the actual answer text which is pulled from the database.
Sometimes the form can be 5 questions, sometimes more and sometimes less. So after the user submits the form, I gather the static input (ie. name, address, email, etc..) but
1. how do I loop to Request.Form for the dynamically generated answers if I dont know how many there may be?
2. How do I then take that data and use it in my Insert statement?
The questions with each answer will automatically generate the imput name field with the qid (question ID) which could be 1-?

View Replies View Related

Form Data

i have this page that inserts a form data into database... the problem is that it wouldn't let me insert my content into the database because of syntax problem... more specifically if i have an apostrophe.. it wouldn't let me insert due to the restriction of my code... is there a way to rewrite my code below so that i can insert apostrophe.. right now if there are ' in my content the strSql will screw up...

strSql = "INSERT INTO Events (Title, Author, Content, SDate) VALUES ('"&strTitle&"','"&strAuthor&"','"&strContent&"','"&strDate&"')"

View Replies View Related

FORM DATA

Does anyone know of anything or any issues that may cause HTML form box (shopping cart) to reset or not keep its posted value?

out of approx 2000 users, only 15 are having this issue and the common thing between them is using Mac's (Different browsers but mostly IE5 and Safari. even made one install latest firefox) instead of PCs.

Now I know this goes against everything I ever knew about SERVER SIDE SCRIPTING, but im really reaching for straws.

View Replies View Related







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