retain value to previous form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • farukcse
    New Member
    • Nov 2007
    • 52

    retain value to previous form

    Dear sir,
    i am using below of this code for searching and viewing data from database.
    [code=html]
    <form name='search_fo rm' method = 'POST' action='' >
    <input type=text name='id_no' value='' maxlength='10' >
    <input type='submit' value='SEARCH' name='search' >
    </form>
    [/code]
    but when i click the submit button it can't retain the id value in it's field. so is there any way to retain it's value after pressing the submit value.
    please try to send response to me.

    Regards,
    Faruk Chowdhury
    Last edited by Atli; Nov 3 '07, 04:07 PM. Reason: Added [code] tags.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    I don't understand that, at all. :(

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi Faruk.

      Please post your code examples within
      Code:
       tags. This makes in much easier for other people to understand your posts.
      
      As to your problem, try something like this:
      [code=html]
      <input type="text" name="id_no"  value="<?php echo $_POST['id_no']; ?>" maxlength="10" />

      Comment

      Working...