473,385 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTML Forms + Javascript

HI,

I need to create an online form with Details such as Name, Address,
EMail, Phone, Message, Credit Card Type/Number/Expiry Date.
I started this and I was able to create the form and validate it..but
the problem is I have two js files :one to validate the normal fields
and other one for credit card(Got through internet).So I decided to
have two pages :In first apge user will enter the particulars and once
they click the continue button they will have to fill out the credit
card details.After doing this when they submit I shud get an email with
all the details.The main problem/idea I need is to know
1)How to store the details of my first page/form and then the secodn
form and finally send altogether to my email.
2) If I am able to validate everything in a same form I need not worry
about having two forms and storing details from one page to other
page.I have two js files but I am not able to properly edit so that all
fields are validated in single form.

Please help me out.

Thanks
Pragan

Nov 6 '06 #1
3 1543
Lee
pragan said:
>
HI,

I need to create an online form with Details such as Name, Address,
EMail, Phone, Message, Credit Card Type/Number/Expiry Date.
I started this and I was able to create the form and validate it..but
the problem is I have two js files :one to validate the normal fields
and other one for credit card(Got through internet).So I decided to
have two pages :In first apge user will enter the particulars and once
they click the continue button they will have to fill out the credit
card details.After doing this when they submit I shud get an email with
all the details.
Never send credit card numbers or other personal information
through email. They should only be transmitted through secure,
encrypted channels. Talk to your web hosting company. They
probably have a secure solution that you can use that will
include credit card validation.
--

Nov 6 '06 #2
HI,

Thanks for the reply. I am going to send this through secure channel
but before that I want to validate the fields before its send out.I
have the normal validation script for the name,email,phone fields but I
want to validate the card number (I found a script online)based on the
type of the card.Ofcourse if I validate this I can validate the expiry
date.SO please help me how to call both the functions in my single
form..for example if the normal fields are done then if the user submit
the form...i shud validate the card details.Once I tried this and what
happened was I got alerrt msg for name field and also card field..so
simillar case was happening each time ..and then page dint validate the
card finally..

Is is always possible for the web hosting company to validate the
credit card field.???

Thanks
Pragan

On Nov 6, 3:59 pm, Lee <REM0VElbspamt...@cox.netwrote:
pragan said:
HI,
I need to create an online form with Details such as Name, Address,
EMail, Phone, Message, Credit Card Type/Number/Expiry Date.
I started this and I was able to create the form and validate it..but
the problem is I have two js files :one to validate the normal fields
and other one for credit card(Got through internet).So I decided to
have two pages :In first apge user will enter the particulars and once
they click the continue button they will have to fill out the credit
card details.After doing this when they submit I shud get an email with
all the details.Never send credit card numbers or other personal information
through email. They should only be transmitted through secure,
encrypted channels. Talk to your web hosting company. They
probably have a secure solution that you can use that will
include credit card validation.

--
Nov 8 '06 #3
HI,

Thanks for the reply. I am going to send this through secure channel
but before that I want to validate the fields before its send out.I
have the normal validation script for the name,email,phone fields but I
want to validate the card number (I found a script online)based on the
type of the card.Ofcourse if I validate this I can validate the expiry
date.SO please help me how to call both the functions in my single
form..for example if the normal fields are done then if the user submit
the form...i shud validate the card details.Once I tried this and what
happened was I got alerrt msg for name field and also card field..so
simillar case was happening each time ..and then page dint validate the
card finally..

Is is always possible for the web hosting company to validate the
credit card field.???

Thanks
Pragan

On Nov 6, 3:59 pm, Lee <REM0VElbspamt...@cox.netwrote:
pragan said:
HI,
I need to create an online form with Details such as Name, Address,
EMail, Phone, Message, Credit Card Type/Number/Expiry Date.
I started this and I was able to create the form and validate it..but
the problem is I have two js files :one to validate the normal fields
and other one for credit card(Got through internet).So I decided to
have two pages :In first apge user will enter the particulars and once
they click the continue button they will have to fill out the credit
card details.After doing this when they submit I shud get an email with
all the details.Never send credit card numbers or other personal information
through email. They should only be transmitted through secure,
encrypted channels. Talk to your web hosting company. They
probably have a secure solution that you can use that will
include credit card validation.

--
Nov 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
4
by: Sathyaish | last post by:
I am no JavaScript progammer, and unfortunately am having to babysit an old code base that has a lot of JavaScript in it. I have two questions: (1) Can two HTML controls have the same name? It...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.