Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2010, 04:46 AM   PM User | #1
twobyfour
Regular Coder

 
Join Date: May 2010
Posts: 140
Thanks: 7
Thanked 0 Times in 0 Posts
twobyfour has a little shameless behaviour in the past
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 05:15 AM..
twobyfour is offline   Reply With Quote
Old 06-27-2010, 04:13 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
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:
<?php
$foo
="bar";
?>
<input type="text" name="date" value="<?php echo $foo;?>">
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:08 AM.


Advertisement
Log in to turn off these ads.