<?php <input type="text"> ?>
Co i gdzie mam dopisac zeby w to pote ("text") nie mozna bylo wpisac danego znaku (W tym przypadku akurat baru (|))?
<?php </form>); ?>
<?php <tr><td class="tekst" style="text-align:right;">Od: </td><td>'.$nick.'</td></tr> <tr><td class="tekst" style="text-align:right;">Do: </td><td><input type="text" class="wiadomosciText" name="odbiorca"></td></tr> <tr><td class="tekst">Tresc:</td><td><input type="text" class="tresc" name="tresc" onkeyup="this.value=this.value.replace(|, '');"></td></tr> </table> <input type="submit" class="buttonWyslij" name="ok" value=""> </form>'); ?>
<?php echo '<form action="" method="POST"> <table style="margin-top:150px"> <tr><td class="tekst" style="text-align:right;">Od: </td><td>'.$nick.'</td></tr> <tr><td class="tekst" style="text-align:right;">Do: </td><td><input type="text" class="wiadomosciText" name="odbiorca"></td></tr> <tr><td class="tekst">Tresc:</td><td><input type="text" class="tresc" name="tresc" onkeyup="this.value=this.value.replace(/|/, '');"></td></tr> </table> <input type="submit" class="buttonWyslij" name="ok" value=""> </form>'; ?>