Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Help in editing value of textbox
May 2, 2006, 4:25 am
rate this thread
I want to know how can i edit a value in textbox in html .
I have a field where I have already put a value from database but i
also want to edit it .
for example ,if in a textbox i put a value 'abc' set in the value
attribute <inptu type=text value="<%= var1%>"> .now I want to change
the value in the textbox and add it to database. hoe should I do it.
Re: Help in editing value of textbox
From an HTML point of view - you change the value of the value attribute.
From a user point of view - you type in the form control.
This sounds like a case of submitting the form (so the input should be in a
form element, with the action attribute set to the URL of a script and the
method attribute set to "POST" (because you are changing something on the
server, if you were searching for something you would use "GET"). The form
would also need a submit button.
What happens then depends on your server side environment (database and
programming language). It *looks* like you are using JSP (to judge from
probably be your next stop (or googling for tutorals on basic Java, JSP and
interacting with databases in Java).
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/
Home is where the ~/.bashrc is