RE: [PHP] calling javascript functions inside PHP

From: Date: Mon, 30 Jul 2001 11:50:33 +0000
Subject: RE: [PHP] calling javascript functions inside PHP
Groups: php.general 
Request: Send a blank email to php-general+get-60193@lists.php.net to get a copy of this message
Short: You cannot why: PHP is serverside JavaScript is clientside solution: encode the cc number in PHP or use SSL for encryption. Or let the javascript version encode it anyway although it's not "send" and let the PHP checkf or the value of send and cc number (that is kind of what you are doing anyway). Another way is to use Java on the serverside (!= JavaScript of course) Btw. You're not going to encrypt cc numbers without a ssl connection are you? Bolke -----Oorspronkelijk bericht----- Van: Dean Martin [mailto:dlmartin@cvn.net] Verzonden: Monday, July 30, 2001 1:40 PM Aan: php-general@lists.php.net Onderwerp: [PHP] calling javascript functions inside PHP I use a PHP self-validating form for taking orders off my site. (on submit it calls itself and if there are no errors a send variable is set and it emails me the information, etc - standard stuff). I'd like to start taking CC orders and would like to encode the information using javascript http://javascript.internet.com/passwords/virgenere-encryption.html. I'll use a hidden value as a codephrase to encode the CC number, then when I receive the order I can go to a secure page on the site to decrypt it. The question is - how do I call a javascript function from my PHP code? I want to do the encoding just before I email the form variables. ie - if ($send == "yes"){ do javascript encoding of cc number $mail (information to me) echo ("Your Order has been sent") } Thanks for any help, Dean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#60193) next »