PROBLEM IN TAKEN INPUT

sourabh kumar

Total Post:6

Points:42
Posted by  sourabh kumar
PHP 
PHP
 1568  View(s)
Ratings:
Rate this:
i am new php
so my problem, how taken the input value from textbox
give the example of its.
  1. Amit Singh

    Post:103

    Points:721
    Re: problem in taken input

    hi,
    using $_post or $_get method to get the value from textbox
     for example
    1) when we use the post method

    <form method="post">
    <input type="text" name="txtName"/>
    ---
    </form>
    <? php
    $strName=$_post['txtName'];
    ?>

    2) when we use the get method

    <form method="get">
    <input type="text" name="txtName"/>
    ---
    </form>
    <? php
    $strName=$_get['txtName'];
    ?>


    check this code


      Modified On Mar-01-2011 03:53:25 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!