View Single Post
ישן 25-02-06, 21:17   # 5
Alon.R
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 2,435

Alon.R לא מחובר  

במקום לעשות echo אתה פשוט יכול לסגור את הסקריפט php (?>) לשים את כל הקטע של הhtml ואז לפתוח שוב את הסקריפט php ככה:

PHP קוד:
<?php 
if($Mode == 'Send'

if(empty(
$_POST['name']) || empty($_POST['mail']) || empty($_POST['yp'])) 

 
?>
<form action='?Mode=Send' method='post'> 
<center><table id='Table_01' width='745' height='325' border='0' cellpadding='0' cellspacing='0'> 
    <tr> 
        <td colspan='3'> 
            <img src='images/order_01.jpg' width='745' height='74' alt=''></td> 
    </tr> 
    <tr> 
        <td rowspan='6'> 
            <img src='images/order_02.jpg' width='301' height='251' alt=''></td> 
        <td width='156' height='27'><input name='name' value='".$_POST['name']."' style='width:156px;height:25px;' class='input' dir='rtl'></td> 
        <td rowspan='6'> 
            <img src='images/order_04.jpg' width='288' height='251' alt=''></td> 
    </tr> 
    <tr> 
        <td> 
            <img src='images/order_05.jpg' width='156' height='19' alt=''></td> 
    </tr> 
    <tr> 
        <td width='156' height='27'><input name='mail' value='".$_POST['mail']."' style='width:156px;height:25px;' class='input' dir='rtl'></td> 
    </tr> 
    <tr> 
        <td> 
            <img src='images/order_07.jpg' width='156' height='22' alt=''></td> 
    </tr> 
    <tr> 
        <td width='156' height='51'><textarea name='yp' style='width:156px;height:49px' class='input' dir='rtl'>'.$_POST['yp'].'</textarea></td> 
    </tr> 
    <tr> 
        <td> 
            <img src='images/order_09.jpg' width='156' height='105' alt=''></td> 
    </tr> 
</table></center></from>  
<?
}
  Reply With Quote