This Question have 3 answers right now.

how to get data from text area and show like news feed as messages

Tags: php
Question!

this is my form area where i using text field or text area for status messages i want to get text from text area and want to print them

<form class="form-horizontal" method="post" id="status-update-form">
    <div class="form-group">
        <div class="col-sm-8">
            <textarea class="form-control" rows="2" name="status" id="status" placeholder="Anything special to share?"></textarea>
        </div>
        <div class="col-sm-4">
            <button type="submit" class="btn btn-success btn-block btn-lg" style="padding: 13.4px;">Post</button>
        </div>

this is my form area where i using text field or text area for status messages i want to get text from text area and want to print them

By : Somi Rana


Answers

You can access array $_POST after sending the form, e.g. $_POST['status']

<?php
if($_POST)
{
   print_r($_POST);
}
?>

<form class="form-horizontal" method="post" action="" id="status-update-form">
    <div class="form-group">
        <div class="col-sm-8">
            <textarea class="form-control" rows="2" name="status" id="status" placeholder="Anything special to share?"></textarea>
        </div>
        <div class="col-sm-4">
            <button type="submit" class="btn btn-success  btn-block btn-lg" style="padding: 13.4px;">Post</button>
        </div>
</form>
By : Marcin C.


Try this

CASE 
  WHEN dbo.tbl.Price IS NULL THEN CAST(dbo.tbl.cost AS NUMERIC(18 , 1)) * 2.2 
  WHEN dbo.tbl.Price = 0 THEN CAST(dbo.tbl.cost AS NUMERIC(18 , 1)) * 2.2 
  ELSE dbo.tbl.Price 
END
By : ash


You need a logical condition in the while. Perhaps

program.toUpperCase().equals("Y")
By : nicomp



Best way to access Exchange using PHP?

Encrypting Passwords

Connect PHP to IBM i (AS/400

Are PHP Variables passed by value or by reference?


Make XAMPP/Apache serve file outside of htdocs [closed]

How can I get the authenticated user name under Apache using plain HTTP authentication and PHP?

Using object property as default for method property

Mechanisms for tracking DB schema changes [closed]

How can I get at the matches when using preg_replace in PHP?

Why is my ternary expression not working?

File size differences after copying a file to a server vía FTP

MySQL/Apache Error in PHP MySQL query


PHP Error - Uploading a file

Multi-Paradigm Languages

Video about how to get data from text area and show like news feed as messages