Hey.
jeg har 2 scripts som skal samarbejde. gør de næsten også men den sender ikke det man har skrevet på side 1 på mail som send.php gør..
besil.htm
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" href="main.css" type="text/css">
<title>BNC Clan</title>
</head>
<body>
<form action="shop.php" method="POST">
<p><font color="#446382" face="Verdana" size="1"><u>ALT</u> skal udfyldes</font><font color="#446382" size="2" face="Verdana">
</font></p>
<table border="0" width="425" style="border-collapse: collapse">
<tr>
<td width="423" colspan="4">
<p align="center"><font color="#446382" size="2" face="Verdana"><b>Personligt:</b><br>
</font></td>
</tr>
<tr>
<td width="107"><font color="#446382" size="2" face="Verdana">Navn:</font></td>
<td width="317" colspan="3">
<font face="Verdana" color="#446382">
<input type="text" name="Navn" size="40"></font></td>
</tr>
<tr>
<td width="107"><font color="#446382" size="2" face="Verdana">Adresse:</font></td>
<td width="317" colspan="3">
<font face="Verdana" color="#446382">
<input type="text" name="Adresse" size="40"></font></td>
</tr>
<tr>
<td width="107"><font color="#446382" size="2" face="Verdana">Post nr:</font></td>
<td width="78">
<font face="Verdana" color="#446382">
<input type="text" name="Post" size="10"></font></td>
<td width="24"><font color="#446382" size="2" face="Verdana">By:</font></td>
<td width="208">
<font face="Verdana" color="#446382">
<input type="text" name="by" size="21"></font></td>
</tr>
<tr>
<td width="107"><font color="#446382" size="2" face="Verdana">E-mail:</font></td>
<td width="317" colspan="3">
<font face="Verdana" color="#446382">
<input type="text" name="mail" size="40"></font></td>
</tr>
<tr>
<td width="107"><font color="#446382" size="2" face="Verdana"> </font></td>
<td width="317" colspan="3">
<font color="#446382" size="2" face="Verdana"> </font></td>
</tr>
<tr>
<td width="423" colspan="4">
<table border="0" width="423" style="border-collapse: collapse">
<tr>
<td width="331" colspan="2">
<p align="center"><b><font color="#446382" size="2" face="Verdana">Produkter:</font></b></td>
<td width="88">
<p align="center"><b>
<font color="#446382" size="2" face="Verdana">Antal:</font></b></td>
</tr>
<tr>
<td width="331" colspan="2"> </td>
<td width="88"> </td>
</tr>
<tr>
<td width="105"><font color="#446382" size="2" face="Verdana">psyBNC:</font></td>
<td width="224">
<font face="Verdana" size="2" color="#446382">
<select style="width: 225; height:22" class="form" name="BNC" size="1">
<option selected value=" ">Ingen</option>
<option value="BNC 1 stk">1 psyBNC ( Pris: 4kr )
</option>
<option value="Bnc 10 stk">10 psyBNC ( Pris: 35kr )
</option>
<option value="bnc server 20">20 slot psyBNC server ( Pris: 60kr )
</option>
<option value="bnc server 50">50 slot psyBNC server ( Pris: 150 )
</option>
</select></font></td>
<td width="88">
<p align="center">
<font face="Verdana" size="2" color="#446382">
<select style="width: 40; height:22" class="form" name="psya" size="1">
<option selected value=" ">0</option>
<option value="Antal: 1 stk.">1</option>
<option value="Antal: 2 stk.">2</option>
<option value="Antal: 3 stk.">3</option>
<option value="Antal: 4 stk.">4</option>
<option value="Antal: 5 stk.">5</option>
</select></font></td>
</tr>
<tr>
<td width="105"><font color="#446382" size="2" face="Verdana">Gamerservers:</font></td>
<td width="224">
<font face="Verdana" size="2" color="#446382">
<select style="width: 225; height:22" class="form" name="gameS" size="1">
<option selected value=" ">Ingen</option>
<option value="Cw 12 slot">12 slot cw server ( Pris: 175kr )
</option>
<option value="Cw/FFa 12 Slot">12 Slot Cw/FFa server ( Pris: 250kr )
</option>
<option value="Cw + Ts 12 slot">12 slot Cw + Ts server ( Pris: 190kr )
</option>
<option value="FFa 16 Slot">16 Slot FFa server ( Pris: 300kr )
</option>
</select></font></td>
<td width="88">
<p align="center">
<font face="Verdana" size="2" color="#446382">
<select style="width: 40; height:22" class="form" name="gamea" size="1">
<option selected value=" ">0</option>
<option value="Antal: 1 stk.">1</option>
<option value="Antal: 2 stk.">2</option>
<option value="Antal: 3 stk.">3</option>
<option value="Antal: 4 stk.">4</option>
<option value="Antal: 5 stk.">5</option>
</select></font></td>
</select></font></td>
</tr>
<tr>
<td width="105"><font color="#446382" size="2" face="Verdana">Ventrilo:</font></td>
<td width="224">
<font face="Verdana" size="2" color="#446382">
<select style="width: 225; height:22" class="form" name="Vent" size="1">
<option selected value=" ">Ingen</option>
<option value="VT 12 Slot">12 Slot server ( Pris: 50kr )
</option>
<option value="VT 20 Slot">20 Slot server ( Pris: 75kr )
</option>
<option value="VT 50 Slot ">50 Slot server ( Pris: 150kr )
</option>
<option value="VT 100 Slot">100 Slot server ( Pris: 250kr )
</option>
</select></font></td>
<td width="88">
<p align="center">
<font face="Verdana" size="2" color="#446382">
<select style="width: 40; height:22" class="form" name="vena" size="1">
<option selected value=" ">0</option>
<option value="Antal: 1 stk.">1</option>
<option value="Antal: 2 stk.">2</option>
<option value="Antal: 3 stk.">3</option>
<option value="Antal: 4 stk.">4</option>
<option value="Antal: 5 stk.">5</option>
</select></font></td>
</select></font></td>
</tr>
<tr>
<td width="105"><font color="#446382" size="2" face="Verdana">Teamspeak:</font></td>
<td width="224">
<font face="Verdana" size="2" color="#446382">
<select style="width: 225; height:22" class="form" name="TeamS" size="1">
<option selected value=" ">Ingen</option>
<option value="TS 20 Slots">20 Slot server ( Pris: 30kr )
</option>
<option value="TS 30 Slot">30 Slot server ( Pris: 60kr )
</option>
<option value="TS 50 Slot ">50 Slot server ( Pris: 80kr )
</option>
<option value="TS 100 Slot">100 Slot server ( Pris: 180kr )
</option>
</select></font></td>
<td width="88">
<p align="center">
<font face="Verdana" size="2" color="#446382">
<select style="width: 40; height:22" class="form" name="tsa" size="1">
<option selected value=" ">0</option>
<option value="Antal: 1 stk.">1</option>
<option value="Antal: 2 stk.">2</option>
<option value="Antal: 3 stk.">3</option>
<option value="Antal: 4 stk.">4</option>
<option value="Antal: 5 stk.">5</option>
</select></font></td>
</select></font></td>
</tr>
<tr>
<td width="105"> </td>
<td width="224"> </td>
<td width="88"> </td>
</tr>
<tr>
<td width="105"><font color="#446382" size="2" face="Verdana">
Betalingsform:</font></td>
<td width="224">
<font face="Verdana" size="2" color="#446382">
<select style="width: 225; height:22" class="form" name="Betal" size="1">
<option selected>Vælg</option>
<option value="<br>Lokalbanken<br>Reg nr: 6301<br>Konto nr: 1675699">Bankoverførsel</option>
<option value="<script type='text/javascript' language='javascript' src='http://www.ewire.dk/includes/quickservice_functions.js.asp'></script><a style="cursor:pointer" onclick="javascript:open_ewire_email('shop@web-csclan.dk','CsClan+Shoppen','HUSK+NAVN+OG+EFTERNAVN','','0,00','28','1');"><img src='http://www.ewire.dk/images/icons/ewire-knap-med-and-100x33-gif.gif' border='0'></a>Ewire</option>
</select></font></td>
<td width="88"> </td>
</tr>
</table>
</td>
</tr>
</table>
<p><font face="Verdana" size="2"><font face="Verdana">
<input type="submit" value="Bestil"></font><font size="2" face="Verdana"> </font></font>
</p>
</form>
<p>
</p>
<p> </p>
<p>
</p>
</body>
</html>
</html>
send.php
<?php
if(!isset($_POST['Navn']))
{
header("Location: bestil.htm");
}
else
{ // Hvis brugeren kom fra kontakt.htm, så fortsætter vi.
//Henter data fra formular
$Navn = $_POST['Navn'];
$Adresse = $_POST['Adresse'];
$Post = $_POST['Post'];
$by = $_POST['by'];
$mail = $_POST['mail'];
$BNC = $_POST['BNC'];
$gameS = $_POST['gameS'];
$Vent = $_POST['Vent'];
$TeamS = $_POST['TeamS'];
$Betal = $_POST['Betal'];
$psya = $_POST['psya'];
$gamea = $_POST['gamea'];
$vena = $_POST['vena'];
$tsa = $_POST['tsa'];
if(empty($Navn) || empty($Adresse) || empty($Post) || empty($by) || empty($mail))
{
echo "Du skal udfylde alt.<br><a href='bestil.htm' title='Klik her for at komme tilbage'>Klik her for at komme tilbage til formularen</a>";
}
else
{
if(ereg("^.+@.+\\..+$", $mail)) {
$sendto = "csclan@web-CsClan.dk";
$kunde = "".$mail."";
$msg = "<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>Faktura</title>
</head>
<body>
<div align='center'>
<table border='0' style='border-collapse: collapse' width='782'>
<tr>
<td width='780' colspan='3'>
<img border='0' src='http://www.csclan-shoppen.dk/mail/logo.jpg' width='780' height='108'></td>
</tr>
<tr>
<td width='65'><b><font color='#446382' size='2' face='Verdana'>Ordre nr:</font></b></td>
<td width='60'>
<p align='center'> </td>
<td width='651'> </td>
</tr>
<tr>
<td width='778' colspan='3'><br>
<b><font color='#446382' size='2' face='Verdana'>Du har bestilt:</font></b></td>
</tr>
<tr>
<td width='778' colspan='3'><font size='1'> </font></td>
</tr>
<tr>
<td width='778' colspan='3'>
<table border='0' width='100%' style='border-collapse: collapse'>
<tr>
<td><b><font color='#446382' size='2' face='Verdana'>Produkter:</font></b></td>
<td><b>
<font color='#446382' size='2' face='Verdana'>Antal:</font></b></td>
<td width='97'><b>
<font color='#446382' size='2' face='Verdana'>Pris:</font></b></td>
</tr>
<tr>
<td>".$BNC."<br>
".$gameS."<br>
".$Vent."<br>
".$TeamS."</td>
<td>".$psya."<br>
".$gamea."<br>
".$vena."<br>
".$tsa."</td>
<td width='97'>1<br>
2<br>
3<br>
4</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='778' colspan='3'>
<font size='1'> </font></td>
</tr>
<tr>
<td width='778' colspan='3'>
".$Betal."</td>
</tr>
</table>
</div>
</body>
</html>";
$subject = "Bestilling";
$subjectkunde = "Bestilling";
$msgkunde = "Takker fordi du valgte CsClan Shoppen\\n";
$msgkunde .= "Faktura vil komme hurtigst muligt\\n\\n";
$msgkunde .= "Mvh\\n\\n CsClan Shoppen";
if(mail($sendto, $subject, $msg, "From: $mail\\r\\n" . "Reply-To: $mail\\r\\n" . "Content-Type: text/html\\r\\n"))
if(mail($kunde, $subjectkunde, $msgkunde, "From: $mail\\r\\n" . "Reply-To: $mail\\r\\n" . "Content-Type: text/html\\r\\n"))
{
echo "Faktura vil komme hurtigst muligt<br>Den vil blive sendt til dig via e-mail<br>hvis du ikke får svar efter 24timer så kontakt mike på #CsClan on qaukenet.org";
}
else
{
echo "Der opstod en fejl. Prøv igen. <a href='bestil.htm' title='Klik her for at komme tilbage'>Klik her for at komme tilbage til formularen</a>";
}
}
else
{
echo "Ugyldig e-mail adresse. <a href='bestil.htm' title='Klik her for at komme tilbage'>Klik her for at komme tilbage til formularen</a>";
}
}
}
?>
håber i forstår fejlen.