Witam,
Potrzebuje zrobić prosty kalkulator ilości znaków. A konkretnie, chce aby liczba znaków z pola1 sumowana sie z liczba znaków z pola2. O ile udało mi nie sumować znaki z jednego pola to z drugim idzie cieżko.
<html>
<head>
<title>Kalkulator znaków</title>
</head>
<form action="kalku.php" method="post">
<table border="5" bordercolor="grey">
<tr>
<td width="50" valign="top">Pole 1:</td>
<td width="50"><input name="pole1" value="" type="text" size="30" maxlenght="20"></td>
</tr>
<tr>
<td width="50" valign="top">Pole 2:</td>
<td width="50"><input name="pole2" value="" type="text" size="30" maxlenght="20"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="suma" value="suma"></td>
</tr>
</table>
</form>
<br><br><br><br>
Suma znaków: <?php print ((strlen($_POST['pole1' + 'pole2']))); ?>