This page work excellent even the location is at the end of the source.
If you don't send anything before you can used anywere in the page ... 
If you send anything before the user cannot see the page because it is redirected.

<?php
//Connection statement
require_once('Connections/gesundheit.php');

//include Kart files
require_once("includes/Kart/cart.inc.php");

//Start Kart Recordset
  $Recordset1 = 
getCartRecordset('Recordset1','id','name','quantity','cost','subtotal','total'); 
//End Kart Recordset

$totalRows_Recordset1 = $Recordset1->getNoRows();
         
//PHP ADODB document - made with PHAkt 2.4.9?>
<?php 
 $Recordset1->MoveFirst();
 $i=1;
 while(!$Recordset1->EOF){
  if($i == 1){
   $url_checkout="?";
  }else{
   $url_checkout.="&";   
  }
  $url_checkout .= 
"isbn".$i."=".$Recordset1->Fields('id')."&menge".$i."=".$Recordset1->Fields('quantity');
  $i++;
  $Recordset1->MoveNext();
 }
 $Recordset1->Close();
 unset($HTTP_SESSION_VARS['cart']);
 
 $url_checkout = "http://localhost/".$url_checkout;
 header("Location: ".$url_checkout);
?> 

-- 
-------------------------------------------------
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610 
[EMAIL PROTECTED]

  "The.Wiz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  I thought you couldn't use header(location:???) if its not listed first, as
  in before the DB code. If this is the case you a redirect by using the meta
  refresh option.

  "Cristian Marin" <[EMAIL PROTECTED]> wrote in message
  news:[EMAIL PROTECTED]
  Put header("Location: my_second_page.php"); after the script which enter the
  data in the db


  --
  -------------------------------------------------
  Cristian MARIN
  InterAKT Online (www.interakt.ro)
  +4021 411 2610
  [EMAIL PROTECTED]

    "Oliver Steimer" <[EMAIL PROTECTED]> wrote in message
  news:[EMAIL PROTECTED]
    HI ,

    after pressing "submit" on my form page and puting the data in my database
  i
    wish to display a new html page. How can i do this ?

    thanks for helping
    Oliver




Reply via email to