Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2010
    Thanked 0 Times in 0 Posts

    display text box once link has been clicked

    I dont know anything about javascript or ajax, so i need some help please.

    I need a textbox to show once a link or button as been clicked. If the user decides not to use this textbox, i need it to disappear.

    I also will be using this on a php page.

    thank you in advance.

    cancel that i changed my mind.

    I need a textbox that autofilles from a mysql database. So when a user changes the info in the box, the database will reflect the changes once submitted. I know there is php coding for that but i got that handled, just need the autofill textbox.
    Last edited by twobyfour; 06-27-2010 at 06:15 AM.

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,250 Times in 2,237 Posts
    I need a textbox that autofilles from a mysql database.
    Do you know how to fetch the data from DB?

    To show something in textbox, all that you need is to set the value attribute, like
    PHP Code:
    <input type="text" name="date" value="<?php echo $foo;?>">


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts