Ved submit form få siden til at gå til index.php
Hej eksperter:Jeg har en side hvor jeg submitter en form. Den ser
sådan her ud:
<?php
// Include MySQL class
require_once('cart/inc/mysql.class.php');
// Include database connection
require_once('cart/inc/global.inc.php');
// Include functions
require_once('cart/inc/functions.inc.php');
// Start the session
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>LUXundPUNK - Afslut handel</title>
<link rel="stylesheet" type="text/css" href="mystyle2.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<![endif]-->
</head>
<body>
<div id="home2">
<div id="lpshop">
<p class="style11">Send bestilling <form action="index.php" method="submit"><button type="submit">Tilbage til forretning</button></form><FORM><INPUT TYPE="button" VALUE="Tilbage" onClick="history.go(-1);return true;"></FORM></p>
</div>
<div id="kurv"><?php echo writeShoppingCart(); ?></div><br>
<div id="forsend"><?php
$id = intval($_GET['id']);
$id = intval($_GET['qty']);
/** starter her min form **/
$output[] = '<form action="submitorder.php" method="post" target="_blank">';
$output[] = '<table border=1 cellspacing=0 borderColor=black>';
$output[] = '<tr>';
$output[] = '<td><p class="style12">Fornavn:<br>
<input type="text" name="fornavn" style="width: 200px;"><br></p></td>';
$output[] = '</tr>';
$output[] = '<tr>';
$output[] = '<td><p class="style12">Efternavn:<br>
<input type="text" name="efternavn" style="width: 200px;"><br></p></td>';
$output[] = '</tr>';
$output[] = '<tr>';
$output[] = '<td><p class="style12">Vejnavn og nr evt sal osv..:<br>
<input type="text" name="vejnavn" style="width: 300px;"><br></p></td>';
$output[] = '</tr>';
$output[] = '<tr>';
$output[] = '<td><p class="style12">Postnr og by:<br>
<input type="text" name="postbynavn" style="width: 300px;"><br></p></td>';
$output[] = '<tr>';
$output[] = '</tr>';
$output[] = '<td><p class="style12">Telefonnr:<br>
<input type="text" name="telenavn" style="width: 200px;"><br></p></td>';
$output[] = '</tr>';
$output[] = '<tr>';
$output[] = '<td><p class="style12">E-mail:<br>
<input type="text" name="email" style="width: 300px;"><br></p></td>';
$output[] = '</tr>';
$output[] = '<tr>';
$output[] = '<td><input type="submit" value="Betal/send ordre"></td>';
$output[] = '</tr>';
$output[] = '</table>';
$output[] = '</form>';
/** slutter her min form **/
echo join('',$output);
?>
</div>
</div>
</body>
</html>
Jeg vil gerne have siden til at gå tilbage når man submitter samtidig med at den åbner det nye vindue (submitorder.php) i et nyt vindue. Hvordan gør jeg det ?
