Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

JS Capability

Question posted by: mkhaira143 (Newbie) on September 19th, 2006 05:09 PM
I'm new to JS and seem to be working my way around it fine. Everything works fine in my form, all the calculations and field validations work just fine.
My form basically is a sign up for a service plan, and has the option to enter credit card information.
My question is how can I get the information submitted without doing credit card processing (I beleive that will involve work to be done on my server before I do that and loads of other security issues I'd have to deal with)?
What it's doing now is they enter the information and then print and fax the form to my office.
I suppose I can email the data to me? But how secure will that be? and will I be able to do it without php (PHP Emailer)?
acoder's Avatar
acoder
Site Moderator
11,635 Posts
May 13th, 2008
08:47 AM
#2

Re: JS Capability
JavaScript is a client-side language, so it would not be suitable for this task.

You will need to use a server-side language such as PHP. You can either email, or you could use a form and submit the information to be stored in a database.

Reply
pronerd's Avatar
pronerd
Expert
334 Posts
May 15th, 2008
04:06 PM
#3

Re: JS Capability
Quote:
My question is how can I get the information submitted without doing credit card processing (I beleive that will involve work to be done on my server before I d

Correct. Your server needs to be configured to support SSL for HTTPS connections. This will require buying a publicly registered key pair. There are a lot of details to know to get this done correctly so you probably want to look into getting some help with this. Or you could just use one of the automaic payment processor services like Paypal to handle the transaction part.




Quote:
I suppose I can email the data to me?

You could do that but it would not be secure at all. Email by default is sent as plan text, and setting up email encryption is a huge pain. You would be better having them submit the form, then having the server store the order in a database, and then having a secure page that will show you all of the orders.



Quote:
will I be able to do it without php (PHP Emailer)?


It does not have to be PHP, but you will need a server side language of some sort. ASP, JSP, PHP, Python, etc.

Reply
rnd me's Avatar
rnd me
Expert
311 Posts
May 15th, 2008
10:35 PM
#4

Re: JS Capability
never never never send credity card info to/from/via email.

email is akin to a postcard, and not to be considered secure under any circumstances.

Reply
acoder's Avatar
acoder
Site Moderator
11,635 Posts
May 16th, 2008
09:46 AM
#5

Re: JS Capability
Some good points, but the OP did say
Quote:
My question is how can I get the information submitted without doing credit card processing
Of course, it is better to submit using a form rather than emailing.

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,938 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Javascript / DHTML / Ajax Forum Contributors