473,800 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1583
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,phon e 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,phon e 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
8407
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 in JavaScript/JScript and HTML/XML elements. Without trying to get famous :-) but thinking it would be interesting to others I decided to post the following summary: 1. Variable names in JavaScript/JScript
12
6559
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 courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
2
8405
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 submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
4
2006
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 looks like the obvious answer is NO. (2) What if? What if the developer has given two HTML controls the same name, i.e has created the same button more than once with exactly the
1
16979
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 examples I found on the web. Works in IE and mozilla. http://www.imaputz.com/cssStuff/bigFourVersion.html
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.