post form conditionally to http or https

From: Date: Fri, 23 May 2003 10:32:23 +0000
Subject: post form conditionally to http or https
Groups: php.general 
Request: Send a blank email to php-general+get-148753@lists.php.net to get a copy of this message
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 (#148753) next »