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
ADVERTISEMENT
I want to auto submit form. After all the script in page run. Or after the specified time.
View Replies
View Related
I am working on a script and I have a form to a page to be submitted (POST-ed) to an external site.
I need that when the user submits the form, first step is to send an email using an asp script and only after that to post the information to the web site. I can send the email but I don't know how to post the form automatically after I send the email. I think I can use javascript, but maybe there is a better way of doing it?
View Replies
View Related
i want to call another asp page from my aspx web page in the form load of aspx page and populate certain values in the aspx page based on the results returned from asp page.. I have to pass certain parameters like username and password to the asp page and the asp page should be submitted automatically . How to implement the form submission of asp page automatically from the aspx page. Based on the seach results, certain fields in the aspx page should be populated.
View Replies
View Related
There are two frames in an asp page.When a frame loads,I submit a form to the other frame in onload event.Sometimes the code works fine, but sometimes it will submit to a new window. Why does it happen? how to resolve it?
View Replies
View Related
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
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
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
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
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
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
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
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
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
View Related
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
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
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
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
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
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
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
I've done lots of sites in ASP and i'm still bored/tired of creating
Add/Edit/Delete form & processing pages for Product tables, Customer/User
tables, etc. I'm looking for a script/package that will make these types of
pages easily and automatcially given a table from my (access or otherwise)
database.
Is there a script/package out there in ASP which will create such
forms quickly and easily with very little work on my part? these would be
pages i'd put in the administration side of the sites i create to manipulate
the data.
View Replies
View Related
I am at wits end with this issue. I have several sites that have forms on them. For quite some time I was getting automated submissions with all types of jibberish in the form fields. Usually this contained html links. I did some server side scripting that prevented such things and for awhile it worked. Now they are back at it but only submitting stuff like the following.
Code:
Name: 8edr1urbkj
Telephone: bz94yishdt
Vehicle: tsf6kf582e nxbpthcqhq
Comment: pqrqamsnk8i k4sjrcxi1801 aklkm6jn7t7jj
Is there a tried and tested method to stop this from happening. I guess I could test the characters to see if they are numeric and kick it out if there are numbers in things like the name field, etc
View Replies
View Related
I'm looking for a way to create a form that includes an auto response that sends a message to the user that "thanks them for their request".
View Replies
View Related
is there some code i can use to automatically execute some HTML form code when a page is loaded ?
View Replies
View Related
I have a form that has approximately 7 text fields and 1 checkbox.
Generally when this form is submitted(to itself BTW) it works fine,
however, when the checkbox is only field that has been
modified/clicked the form doesn't always submit. When it does work, a
Stored procedure is passed form variables and updates to the db are
made. When it doesn't, its as if the form wasn't submitted, it
reloads and resets the page, but the stored procedure isn't triggered.
View Replies
View Related
I have a form that I want to auto fill in with database data. When the customer number is typed into a textbox and a button in clicked, the database will be queryed and pull back that record.
Once pulled from the database I would like the form text boxes to automatically fill in with the data brought back. Can this be done? If so, can someone show me a small example of the easiest way to do this?
View Replies
View Related
I just recently created a html form and one of the fields required a date. I want to make it so it will insert the date when the form is being filled out. For example, if I fill out the form today I want today's date on it.
I am going to connect this form to a MS access database, the database also has a field "date". How would I like all these together? Also, I want to send a notice to a specific email whenever someone submits the form.
View Replies
View Related
I know I have done this but my mind is fried. I have a dynamic dropdown in
a form. I need to pull both the dynamic dropdown's ID and name listed in
the dropdown. Need a little help with grey matter tonight.
View Replies
View Related
I have a page with image, image has some image map, I want to submit
form when user mouseover that image map, my code is like this:
<img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1">
<map id="planetmap" name="planetmap">
<area id=f4 shape="circle" coords="65, 93, 11" alt="CF4588"
onmouseover=overf4()>
And I write sub overf4() in vb script
sub overf4()
document.frmSelect.submit()
end sub
when mouse over that point form submit several times until mouse in on
the point I want to sumbit iust one time
View Replies
View Related
I am looking at putting a form on one of my pages that inserts data into my database (MySQL)it is possible to submit this form and then when the form is submitted fire an e-mail off to a member of staff to say that a new record has been added
Has anyone had any experience of doing, or trying to do, anything like this (or even know if it's possible)?
View Replies
View Related
This is from a "back-end" page on my site, but have run into a problem I've not had before, first off the form is being generated with some dynamic capabilities. Simply meaning I'm building it based upon so many records from a database.
Now I've isolated the problem down to 1 particluar text field and somehow related to it's name. When the name is present the form refusses to submit, except when I simply delete a reference to the name it works fine. Below you'll see an example of the code:
View Replies
View Related
I am successfully generating an HTML-formatted email using ASP and a NewMail object. It works great. The content of the email includes a simple HTML form that posts to an asp page.THE PROBLEM:
The form in the email functions properly (can be submitted, opens a
browser and redirects to the "post-to" asp page) but the form data is
not making it. i.e.at the far end in the "post-to" asp page....
request.form("someField") is empty.I imagine it has to do with encryption but can't find any info on the subject.
View Replies
View Related