Ben php ile veritabanından çektiğim verileri html mail olarak göndermek istiyorum.Sadece html olursa tırnak arasında html kodlarını eklemek sorunu çözüyor.Ama arada php kodları olursa bunu nasıl hallederim.
Tırnak arasına koydum ama aradakş php'lerden dolayı boş ekran geliyor.
Bunu nasıl çözerim..
Kod: Tümünü seç
<?
$to="deneme@deneme.com';
$subject:'Deneme';
$message='?>
Kod: Tümünü seç
form name="form1" method="post" action='<?=$_SERVER['PHP_SELF']?>'> <p> </p>
<table width="732" height="151" border="0" align="center" bgcolor="#FF0000">
<tr bgcolor="#FFEBCD">
<td height="37" colspan="3" valign="middle" bgcolor="#003399">
<p align="center" class="style1"> VOLVO CATALOG SİPARİŞ LİSTESİ
<div align="center"></div> <table width="229" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="151"><div align="center"><span class="style1"><a href="order_list.php">Sipariş Listesi</a></span></div></td>
<td width="78"><div align="center"><span class="style1"><a href="my_basket.php"><img src="images/my_basket.gif" alt="MY BASKET" width="75" height="22" border="0" align="right"></a></span></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="77" colspan="3" align="right">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber1" style="border-collapse: collapse">
<tr bgcolor="#993333">
<td width="38%" height="37" align="center"><span class="style6">PICTURE</span></td>
<td width="9%" align="center"><span class="style6">NT. REF </span></td>
<td width="11%" align="center"><span class="style6">ORG. REF </span></td>
<td width="18%" align="center"><span class="style6">DESCRIPTION</span></td>
<td width="11%" align="center"><span class="style6">NOTES</span></td>
<td width="10%" align="center"><div align="center"><span class="style6">QUANTFY</span></div></td>
<td width="3%" align="center"><INPUT TYPE=CHECKBOX NAME="everything" onClick="checkAll(this);" value="CHECK ALL" ></td>
</tr>
<?php $i=0;
while($satir = mysql_fetch_array($sorgu))
{
$i++; ?>
<tr bgcolor="#efefef" >
<? $picture="$satir[7].jpg";
$yol="$satir[1]";
if($yol=="Mercedes") {$yol1="picture"; }
if($yol=="Volvo") {$yol1="volvo_picture"; }
?>
<td width="38%" height="206">
<div align="center"><font color="#CC0000" face="Arial, Helvetica, sans-serif"><img src="/html/<?php Echo "$yol1"?>/<?php echo $picture;?>" width="238" height="161" align="middle" border="0"></font></div></td>
<td width="9%"> <?php echo$satir[ntno];?>
<div align="center"></div></td>
<td width="11%"> <?php echo$satir[orgno];?>
<div align="center"></div></td>
<td width="18%"> <?php echo$satir[description];?>
<div align="center"></div></td>
<td><?php echo$satir[6];?>
<div align="center"></div></td>
<td><div align="center">
<input name="adet<?echo $satir[0]?>" value="<?echo $satir[adet];?>" type="text" size="5" >
</div>
<div align="center"></div></td>
<td>
<input type="checkbox" name="uye1<?echo $satir[0]?> id="<? Echo $i ?>" ></td>
</tr>
<? } //echo$i; ?>
</table>
<table width="738" border="0" bgcolor="#FF0000" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="738" bgcolor="#FF0000">
<div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">
<?}Echo "$toplam adet ürün mevcut";?>
</font></div></td>
</tr>
<tr>
<td bgcolor="#FF0000"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> <?Echo "$sayfa".".sayfa";?> </font></b></td>
</tr>
<tr>
<td bgcolor="#FF0000"> <b><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" onMouseOut="bgColor='#EFEFEF'" class="stok_hand"><?echo "<br>";
for($i=1; $i < $kacsayfa; $i++)
{
echo "<a href=my_basket.php?sayfa=".$i."&volvo_search=".urlencode($volvo_search).">".$i."</a>\n";
}
?> </font></b></td>
</tr>
</table></td>
<tr bgcolor="#87CEFA">
<td width="578" height="1" bgcolor="#003399">
<p align="center">
<input type="submit" name="submit" value="SIPARIS ET" onClick="return confirm('Seçtiğiniz ürünleri sipariş listesine eklemek istiyor musunuz?')">
<input type="submit" name="sil" value="SEPETI BOSALT" onClick="return confirm('Seçili kayıtları silmek istiyor musunuz?')">
>
<font color="#FFFFFF" face="Arial, Helvetica, sans-serif"> </font>
<td width="56" bgcolor="#003399"> <td width="96" bgcolor="#003399"><input type=button value="Yazdır" onClick="myprint()">
</tr>
</table>
</form>
</center>
</body>
</HTML>
Kod: Tümünü seç
<?'; ?>
Maili gönderiyorum..
<?php mail($to, $subject, $message);?>