Validate Form With Multiple Payment Options...
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
ADVERTISEMENT
I have the need to create a form that will allow a user to register for summer camp online and also make payment. I also want the ability to export the data to a .CSV or some other simple database file. I do NOT want to export to XML. The form processing program would preferably be ASP or PHP.
I plan to use PayPal or some other credit processing company to allow the user to make payment. This is for a non-profit organization so a free or very inexpensive solution is obviously preferred. Can anyone point me in the right direction?
View Replies
View Related
I m trying to use multiple option menu using redirect function in ASP.
I managed to do a single option but I need to use multiple options can you please advise on how to do this, so both options apear in the same page. for instance, in the code below a user should be able to select uk and also selects between the other options; population, geography from the same page. Code:
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
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
View Related
I have a form which consists of a few fields. The problem that i encountered was it seemed like just checking the first field only rather than all the fields. Code:
View Replies
View Related
I have a form that users fill in, thefirst field is a username, which
must be unique.Currently only when I attempt the Insert into the DB does the restaint
inform the user that it already exists.Is there any way i can check , let say onblur, if that username exists, so that they dont have to complete the whole form before being
informed?
View Replies
View Related
I have a form that imputs several variables. Some of these variables are varchar some are smalldate and some are numbers.
What is the recommended method of handeling input that does not fit the required variable type? I am thinking of doing some kind of check and if it is not the required field type just dropping that value (for instance if they type "aaaaa" into a date field I would just turn that variable into "").
I have done a search and came up with many great methods of doing this, but what is the best way? I would like to avoid large Java routines (actually I would like to avoid java all together.
View Replies
View Related
I built a form with all fields validated:
here's my code===========================
' validation
Dim validationOK
validationOK=true
For Each elem in fields
'all fields required
'If (Trim(fields(elem))="") Then validationOK=false
Next
If (Trim(fields("name"))="") Then validationOK=false
If (Trim(fields("email"))="") Then validationOK=false
If (validationOK=false) Then
Response.Write DisplayPage("error.html", fields)
Response.End
End if
end code================
how can I change this so that certain fields are NOT required.
View Replies
View Related
I need to validate an item number from a form field against a MS SQL database
I am using a 2 page process to print barcodes from an entered item number on page 1 and need to only use valid item numbers from the database. If they enter a wrong number I want to give them a page telling them of the error.
I have 32 fields on page 1 to enter 32 items.(one for every label on the second page that contains the barcodes. Here is the connection to the database that I am using for the barcode.(Column IMLITM contains the item numbers) Code:
View Replies
View Related
I have a form, and it has an email and phone text input fields. I want to test if BOTH are empty and stop the email from being sent. I thought that this would work Code:
View Replies
View Related
I am writting a online shop for my mums shop in belfast they sell gothic clothing to see the setup so far you can go to
www.cooljamdesign.com/ripoff
My problem is which payment processer to go for I was thinking paypal but i cant hide the fact to the end user that it is a paypal site or is is their a background component. i can use that does it in the background and processes the order.
View Replies
View Related
I HAVE TO IMPLEMENT PAYMENT GATEWAY IN MY WEB APPLICATION. How can i do so?
View Replies
View Related
How does Payment Gateway Integration work? I also need the Code in .NET.
View Replies
View Related
We are using classic ASP for our site and we are looking for a solid and inexpensive payment provider that we can do under the hood API integration with. We do not want to install any software on the server to do this (re: PayPal's API). We have worked with Authorize.net before but their startup price tag is a little high.
View Replies
View Related
I need to use payment gateway integration in my site.
View Replies
View Related
anyone had done any car payment estimate calculations before??? If you 've had or you have an idea how to code this….please help. Thanks so much in advance.
I have a form:
Retail price, Down Payment, Sales Tax, Annual Interest Rate, Term (months) Payment (12,24, 36, 48, 60, 72, 84) , and Loan.
How to calculate Monthly Payment and the Total amount (when you payoff the car) how to do it. Thanks so much. I really have no clue.
View Replies
View Related
How can I implement multiple buttons for a form like - submit, cancel, logout etc.
View Replies
View Related
I'm just starting on ASP and I've found it extremely useful.I have a form page where I'm collecting some information - that information I want to have emailed to me and part of it needs to be directed to a Merchant Accounts providers site for user to complete their purchase.
Email part I can take care of using CDONTS and/or SoftArtisans.SMTPMail.Passing the data to Merchant Account Provider (MAP) I can take care of.Doing both simultaneously is a different issue.I would like to have one submit button that directs some info to the email and some to the MAP.
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'm attempting to achieve a couple of things but I don't know if it's possible. I think the following piece of code will help explain what I'm trying to achieve:
<%
'test whether user checked a particular check box when the user clicks the submit button
If Request.Form("mycheckbox") = "YES"
Then
'I want the forms action to post all form data to THIS_PAGE.HTML
Else
'I want the forms action to post all form data to THAT_PAGE.HTML
end if
%>
View Replies
View Related
I am having a problem with a form that I created. (Done in ASP)
What I am trying to accomplish is this:
A form gets filled out on the web.
The form then gets submitted to at least 2 email addresses, sometimes 3 or 4.
I have noticed that the form makes it to the first 2 email addresses listed, but never any more than that.
Here is the part of the code where I am adding the email addresses:
.To = "email1@address.com;email2@address.com"
'.From = Request.Form("emailfrom") - This line is commented out
.From = "email1@address"
.Subject = "Lease Application - Lease Rep"
That code seems to work fine and the 2 recipients get the form data.
When I add more email addresses to the .to section, it never gets to those recipients. (I am using Semi-Colons to seperate the email addresses)
Here is how I have been adding extra emails to the form:
.To = "email1@address.com;email2@address.com;email3@customer.com"
'.From = Request.Form("emailfrom") - This line is commented out
.From = "email1@address"
.Subject = "Lease Application - Lease Rep"
When I add any more than 2 emails, the form never gets to those intended recipients.
View Replies
View Related
We have a facility on our intranet where users can log problems, comments &
suggestions about the site to a DB.
I'm building a page that lists the outstanding entries, and allows use to
mark any number of entries as being 'done'
That is, we have a number of rows, with the last field in each row being a
checkbox to indicate the entry has been dealt with. At the end, there is an
Update button which submits the form.
The question is.. how to handle this...?
The best solution I have thought of so far is to use the record ID as the ID
for each checkbox. Then to Split() the resulting Request.Form into an array,
loop through the array picking out the record IDs.
It's not a bad solution, but I figured this must be a fairly common
procedure and that somebody might have a slicker way of doing it...
View Replies
View Related
I am trying to have a form that has multiple records on it and the user can check a box on which ones to add to the database. I created the form but cannot get the fields to enter into the database.
View Replies
View Related
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.
View Replies
View Related
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"
%>
View Replies
View Related
basically what im trying to do is create a form to submit some data to an access db.
In the form i want to be able to have two dynamically populated drop downs (so if a user chooses cars in the first field it comes up with a bunch of car manufacturers, or if he chooses boats it comes up with boat builders etc etc.)
Ive searched high and low, and i the best i can find is javascript to make the drop dows. The java script however uses a form to repost the data back to the page to populate the second drop down. This wont work when its inside a form.
View Replies
View Related
I have a client that wants all his products on one screen, where people can enter the quantities of every item they want and only have to hit one "Add to Cart" button.
So I have an array of results for each products ID number, and quantity amount for each product. How do I loop through those results and add multiple rows to the database?
View Replies
View Related
Users enter data using HTML forms and it gets processed by an asp page that enters the data into the database. What I am trying to do is get a "confirm" page set up that will make sure the form was completed properly. If it is completed successfully, then the data from the form needs to be forwarded onto another asp page that will enter the data into the database.
My question is, what is the best way to forward the information on? Currently I am using querystring to handle this, but that doesn't work in some situations especially when one of my forms has a <textarea> box that seems cumbersome to send via querystring.
Is there a method I can use to easily forward the data from the form to subsequent pages after the first one ?
View Replies
View Related
Well i have pictures in database and i display them all on the page. While i display them i put a button with them each. So that they can be deleted.
But the problem is that. as i put the button in a loop while displaying images. The name of the button is same and when i click the button to post the values to the next page where i should have the script to delete image. All the values of all the images go to the next page.
I want to bind that particular image with that button, so that when one specific button is clicked only the id of the picture binded with that will go to next page.
I can do the job by having a delete link with each image and posting the value to other page. But i have to use the BUTTON to do that. But dont know how to use it.
View Replies
View Related
How do I convert this ASP mailer script to accept and mail multiple fields of a form. This will do one field only )iMesg.TextBody = Request.Form("body") and it works great. Code:
View Replies
View Related
I am going to have a form on one page that will have a bunch of options(checkboxes, radio buttons, text areas, text fields, etc.) and these options are going to deal with a certain category. Each category will have different options. Now after this form is filled out they will then proceed to another page to fill out contact information. Name, Addy, State, City, etc.
Now, after they fill this contact form out they will submit it and then it will go through a database and depending on what state and county they are in it will email the information from both forms to the email addresses in the database that match that state and county(as well as category). Now dont worry I aint wondering how to actually search the db and all that yet.
All I want to know right now is how do you remember the first forms information while you go to the second page to fill out the contact information? Using cookies? What? I dont want the form input to be displayed on the second page, just remembered.
So I will select all my options from the first form and fill out all the text areas and fields and all that then click on the Next button or whatever, then fill out contact info.
How do I get it to retain BOTH forms information, and for now just display both of them on a third page(like I said I will worry about the db query and email crap later). I hope this makes sense.
View Replies
View Related
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
View Replies
View Related