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.
View Replies
ADVERTISEMENT
I have a form with dropdown boxes and a "Submit" button.These dropdown boxes get populated dynamically with user interaction, like this:
<form method="POST" name="form1" action="MyPage.asp">
<p><select size="1" name="Dropdown1" onchange=form1.submit()>
The "Submit" button is included within the same form.Is there a way to find out which item made the POST action.If it's the Submit button.i want to do this.If it's the dropdown boxes.then i want to do a different thing.
View Replies
View Related
Is there any way to post two actions at different in a same form data with a single button click? I would like to use the following actions in the same form. But I can successfully use any of one below.
<form name="DeliveryDetails" method="post" onsubmit="return check(this);" action="ShowDeliveryDetails">
<form name="process" method="post" action="mail.pl">
View Replies
View Related
Is there any way to post two actions at different in a same form data with a single button click?
I would like to use the following actions in the same form. But I can successfully use any of one below.
<form name="DeliveryDetails" method="post" onsubmit="return check(this);" action="ShowDeliveryDetails">
<form name="process" method="post" action="mail.pl">
Code:
View Replies
View Related
In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action:
<form name="form" method="post" action="RegDetails.asp">
This works fine, the form details are collected by RegDetails.asp
I am attempting to include javascript server side validation for the pasword, which obviously requires password and password2 fields (to be verified). I have used the script available at:
http://javascript.internet.com/forms/val-pass.html
It works fine in a new blank page with the form action:
<form name=myForm onSubmit="return validatePwd()">
The final stage in this javascript demo form displays an alert box:
else {
alert('Nice job.');
return true;
When I change the first line of my original form to:
<form name=myForm onSubmit="return validatePwd()">
how do I get my original action of - action="RegDetails.asp" instead of this alert box?
View Replies
View Related
I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is: how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one
document.MyForm.action = "save.asp";
document.MyForm.submit();
View Replies
View Related
how I can create two different form actions.I'm currently creating a On-Line Order System for our company. I've created a page that displays what they have ordered and the option to update the number of item that would like on there order. so I need to create two different for actions.
What I looking to have is one button that would submit, one button that would update any changes? Two different action.the update button will call proorderbyline.asp the submit will call submitbyline.asp .
View Replies
View Related
I have a form that appears in a popupwindow. I found a javascript code that allows me to return to the opener window onClick and it closes the popwindow. The problem is I tried to implement the code into my Form Action and I can't get it to work.
This is the original code:
onClick="return targetopener(this, true)
This is what I'm trying to do:
<form action='return targetopener(<%Response.Write("checkboxtrial2.asp?Model=" & Recordset("model") & "")%>, true)' name="formOptions" method="post">
View Replies
View Related
I want to have a poll on a message board and add options by users clicking a button. The code looks something like this...
<INPUT TYPE=BUTTON VALUE="Add" ONCLICK="Add();">
<INPUT TYPE=BUTTON VALUE="Delete" ONCLICK="Delete();">
function Add()
{
// alter the action and submit the form
document.topicform.action = location.href + "1" ;
document.topicform.submit();
}
function Delete()
{
// alter the action and submit the form
document.topicform.action = "deleteformbutton.asp";
document.topicform.submit();
}
As you can see I'm not really sure how I should go about processing the actual form. Each time the user decides to add another form button I want it to keep the value of the old button. Anyone got any ideas?
View Replies
View Related
Is there a way with ASP or Java to hide the form action part of a form? I have someone that has found the location of a script by looking at the source of one of my forms.
They run some type of script that trys to post bogus info from 6:00 in the morning till 12:00 in the afternoon. Although it gets denied due to wrong input by the user, it sends administrative emails that are annoying (hundreds). If the user only saw the client side (below), they could not do it. Is there a way? Code:
View Replies
View Related
Is it possible to have a form with TWO submit buttons that calls TWO DIFFERENT ACTIONS?
For example, at the end of the form, when SUBMIT1 is pressed, it goes to PAGE1.asp. if SUBMIT2 is pressed, it goes to PAGE2.asp. and whichever one it goes to, all form field values are sent to it?
View Replies
View Related
I want a form to submit to a different page depending on what selection has been made in a dropdown option box. However something is going wrong my code looks as follows: Code:
View Replies
View Related
Can I have this: Code:
<!-- #include file="myFunc.asp" -->
<form name="myform" method="post" action="<% function1(); %>" >
..form stuff
</form>
I tried it but it was as if the page was trying to process the function before the page rendered.
View Replies
View Related
I have a form where the user has 2 payment options. Is there a way to add validation to the form to ensure that at least one payment method is selected? This form does not actually process the payment, just sends the information to the recipient.
View Replies
View Related
Have a school project in which I have to use an ASP page to process data
from a form submitted by a user. Have to do this 3 ways - Using a Function,
a Sub Procedure, and a Class. Simple enough.
I decided to see if I could get them all to work from 1 submittal page using
an option group of radio buttons, and JavaScripting to send me to the
correct page (just as a personal learning experience). Got this working
also - but only in IE. Code:
View Replies
View Related
I am using a form. This has the action tag set to another page. But within this form I am using a button, which when clicked should take me to a different page.
View Replies
View Related
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.
View Replies
View Related
I've always been able to find my answer in other posts. Which leads me to wonder if what I want to do can be achieved?
I need an xml object to post a form on my site without a user having to click submit.
The form it will be submitting will always be submitting to 1 specific page. The form element it submits will be a different string every time. When the form is fired off it will search for this string in the code of the page it has been sent to and then return to me whether it was found or not.
View Replies
View Related
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 Replies
View Related
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.
View Replies
View Related
Could someone please remind me how to get all the form variables in a post?
View Replies
View Related
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?
View Replies
View Related
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?
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
help with posting a .asp form with Hebrew form values to an Access database. When I post it, and do the insert - garbage goes into the database. I can sucessfully read from the db - prefacing a all my response.writes with a server.HTMLEncode call.
View Replies
View Related
If I disable the form control, even I post it, it still cannot get the value. Is that correct
<form action="page2.asp" method="post"><INPUT TYPE="TEXT" name="fname" value="Joe" disabled></form><%= Request.Form("fname") %> still cannot get the value "Joe
View Replies
View Related
There are 2 ways of passing variable to another page: GET and POST
If i want to use Method GET, I jst need to do Response.Redirect "another.asp?id=abc"
What if I want to use Method POST, how to do it?
I want the user's input to be processed before post it to another page.
View Replies
View Related