PDA

View Full Version : Urgent:textbox linked to database


ravi
05-25-2003, 07:15 PM
Hi theree

I want to link a textbox to a field in a table. That is i want to see whenever the page comes up the value in the textbox should be from that table field. How can I do this. if there is a link for this can u please send it to me or suggest a solution.

thanks

Ravi

Nightfire
05-25-2003, 08:35 PM
What language can you use to query the database to get the values?

harrydb
05-25-2003, 11:03 PM
I think you have to get the value from the database and print it in the "value" property of the textbox.

For example:
<form action="somefile.htm">
<%
$value = getFromDatabase("bla");
print('<input type="text" name="bla" value="$value">');
%>
.
.
</form>
This looks different depending on which language you use.

btw, I think this question belongs in Server side development, not here.

Harry