Now is the time…
for all good
men…
The result is:
Now is the time…for all good men…
I am using PHP 5.1.6 and Apache 2.2.3. I have tried Firefox 20.0 and IE 10 for Windows 7. The end users will be using IE 7 to IE 10 with only a few using Firefox and Safari.
Here is the creation of the textarea:
<textarea class="textarea" rows="4" cols="90" name="lease" id="lease " onBlur="ajaxLease()">
<?php echo nl2br($stuff['lease']); ?>
</textarea>
ajaxLease() is a javascript function that gathers information and passes it to a PHP script:
Code: Select all
$month = $_REQUEST['month']; $year = $_REQUEST['year']; $lease = $_REQUEST['lease'];
// $lease = str_replace(array('\r', '\r\n', '\n'),'<br />',$lease);
// $lease = stripslashes($_REQUEST['lease']);
// $lease = mysql_real_escape_string($_REQUEST['lease']);
$query = "UPDATE activities SET lease='".$lease."' WHERE month='".$month."' AND year='".$year."';";
$qry_result = mysql_query($query) or die(mysql_error().$query);