say i've got a script like this..
Code: Select all
<?
$words = $_GET['words'];
echo count($words);
?>Code: Select all
<form action="script.php" method="GET">
<input type="text" name="words">
<input type="submit" value="submit">
</form>Moderator: General Moderators
Code: Select all
<?
$words = $_GET['words'];
echo count($words);
?>Code: Select all
<form action="script.php" method="GET">
<input type="text" name="words">
<input type="submit" value="submit">
</form>Code: Select all
count(explode(" ", $words));