hello dear, I have problem in php. i have created one class in php and i have created function in that class. i want to call that function with argument of textarea's value which is added in my webpage. so please send me script to call php function with textarea's value Please help me. thanks
$arg = $_POST['argumentOfYourTextArea'] $obj = new YourClass(); $ret = $obj->yourFunction($arg); U have to use something like that.
why not consider using javascript or jquery to retrieve the textarea value and then send it using json to form. just go through the following links: http://corpocrat.com/2008/12/18/free-wysiwyg-textarea-html-editor/ http://corpocrat.com/2009/07/12/how-to-call-a-php-script-from-javascript/
youd have to use ajax to call a php function otherwise you could write the function in javascript iteself to get the job done