php script to call php function with textarea value

Discussion in 'PHP' started by kanji, Apr 4, 2011.

  1. #1
    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
     
    kanji, Apr 4, 2011 IP
  2. AlC4Tr4z

    AlC4Tr4z Member

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #2
    $arg = $_POST['argumentOfYourTextArea']
    $obj = new YourClass();
    $ret = $obj->yourFunction($arg);


    U have to use something like that.
     
    AlC4Tr4z, Apr 4, 2011 IP
  3. Brunzig

    Brunzig Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks alot
     
    Brunzig, Apr 5, 2011 IP
  4. kanji

    kanji Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i want to get textarea 's value without submit a form......
     
    kanji, Apr 5, 2011 IP
  5. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #5
    olddocks, Apr 5, 2011 IP
  6. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    youd have to use ajax to call a php function otherwise you could write the function in javascript iteself to get the job done
     
    srisen2, Apr 5, 2011 IP