אשכול: שאלה בjavascript
View Single Post
ישן 28-10-05, 12:35   # 15
satan
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 1,582

satan לא מחובר  

PHP קוד:
if ($_POST["send"]) 
{
    if (!$_POST["text"]) 
    {
        die ("עליך למלא את כל שדות הטופס!");
    }
    
    $text = smily("$_POST[text]");
    $text = replace("$text");
    echo $text;
}
else 
{
?>
    <table border="1">
        <tr>
            <td colspan="2">
            כותרת: <input type="text" name="title" maxlength="42" id="title" size="100%" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
    <form name="buttons" method="POST">
    <input type="button" value="  b  " onclick="bbcode('b')" />
    <input type="button" value="  u  " onclick="bbcode('u')" />
    <input type="button" value="  i  " onclick="bbcode('i')" />
    <input type="button" value="  S  " onclick="bbcode('s')" />
    <input type="button" value="  תמונה  " onclick="bbcode('img')" />
    <input type="button" value="  לינק  " onclick="bbUrl('')" />
    </form>
    </td>
        </tr>
        <tr>
                <td>
    <fieldset>
    <legend>סמיילים</legend>
<?
function set_link($code,$name

    
//+-----------------------------------------------------------------------+
//|the name is only the name of the file.. not happy.gif. "happy" is true.|
//+-----------------------------------------------------------------------+

?>
    <a href="#" onClick="smilie_name('$code')">
    <img src="image/smile/$name.gif" border="0" />
    </a>
<?
}
show_smily();
?>
    </fieldset>
    <!---
<center>
    <a href="#" onclick="win()">עוד...</a>
</center>
-->
            </td>
            <td>
    <form action="<?=$_SERVER["PHP_SELF"]?>" name="tofes" method="POST">
    <textarea cols="70" rows="20" name="text"></textarea>
            </td>
        <tr>
            <td align="center" colspan="2">
 <!--   <input type="submit" name="send" id="send" value="  שלח  " onClick="this.disabled='true';"/> -->
<input type="submit" name="send" id="send" value=" שלח " onClick="this.disabled='true';document.getElementById('tofes').submit();" />
  Reply With Quote