O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — adding the status input box to the interface

In this section, we will simply add an HTML form consisting of one text area for the status post and a Submit button for the form submission. We will add the form wrapped with a div element before the <ul> tag at index.php.

  1. In order to add the status poster box, we add the following HTML code inside the div#container, before the <ul> tag:
    <div class="inputbox">
    <form id="statusFrom" action="index.php" method="post" >
    <textarea name="status" id="status_box">Write your status here</textarea>
    <input class="right" type="submit" name="submit" id="submit" value="Share" />
    <div id="postStatus" class="postStatus clearer hidden">loading</div>
    </form>
    </div>
    

    So, the div.inputbox will contain ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required