RE: [PHP] post form conditionally to http or https

From: Date: Fri, 23 May 2003 16:17:33 +0000
Subject: RE: [PHP] post form conditionally to http or https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148792@lists.php.net to get a copy of this message
You can't include HTTPS files. Would it really be a big deal to just have the HTTPS version handle both cases? This way the data is protected either way. Even though one case may not have a CC number, that doesn't mean you should send the rest of the data plain text... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -----Original Message----- From: frederik feys [mailto:frederikfeys@pandora.be] Sent: Friday, May 23, 2003 6:32 AM To: php-general@lists.php.net Subject: [PHP] post form conditionally to http or https Hi all, I have a form. When the user hits submit it checks wether users wants to enter creditcard info. If no, the next page is a normal http request(so i'd use an include command). If yes, i'd like to connect to our secure server. Here's the code i have : <? if ($pay_method =="ov"){ include("checkout_form.php"); } else if ($pay_method =="cc"){ include("https://www.domain.org/store/checkout_form.php"); } ?> and gives: Warning: Failed opening 'https://www.domain.org/store/checkout_form.php' for inclusion (include_path='.:/usr/share/pear') in /home/u/r/user848403/html/store/order_overview.php on line 6 Any help appreciated! Fred

« previous php.general (#148792) next »