Re: Display new Page after Form is processed
| From: | Cristian MARIN | Date: | Fri, 06 Jun 2003 15:09:20 +0000 |
| Subject: | Re: Display new Page after Form is processed | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20231@lists.php.net to get a copy of this message | ||
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
cristic@interakt.ro
"The.Wiz" <chrisz@aurumtechnology.com> wrote in message news:20030606144237.52160.qmail@pb1.pair.com...
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" <cristic@interakt.ro> wrote in message
news:20030605071246.70235.qmail@pb1.pair.com...
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
cristic@interakt.ro
"Oliver Steimer" <oliver.steimer@mbos.de> wrote in message
news:20030604204015.51320.qmail@pb1.pair.com...
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