473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to update a text box

Hi,

I am creating a list of text boxes in a PHP code. like below

<form name=matrix>
<table border=1 width=100%><tr>
<td><input type=text size=3 name=box1-1 value=0></td>
<td><input type=text size=3 name=box1-2 value=0></td>
....
</tr></table>

Now I would like to update this values in each box in th e nd of this page.

How do I do that ?

Any idea? Or is it possible?

Thanks...
Jul 23 '05 #1
2 1308
kak3012 wrote on 22 dec 2004 in comp.lang.javascript:
I am creating a list of text boxes in a PHP code. like below

<form name=matrix>
<table border=1 width=100%><tr>
<td><input type=text size=3 name=box1-1 value=0></td>
<td><input type=text size=3 name=box1-2 value=0></td>
....
</tr></table>
I don't see any PHP
Now I would like to update this values in each box in th e nd of this
page.


<input size='3' name='box1-1' id='box1-1' value='0'>
<input size='3' name='box1-2' id='box1-2' value='0'>
.......
.......
<script type='text/javascript>
document.getElementById('box1-1').value='1';
document.getElementById('box1-2').value='2';
</script>
</html>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #2
On Wed, 22 Dec 2004 16:59:30 +0100, kak3012 <s0*****@student.dtu.dk> wrote:

[snip]
<form name=matrix>
Forms should be identified with an id attribute. Only add the name
attribute if you want backward compatibility with old browsers like NN4.
<table border=1 width=100%><tr>
You need to quote that width attribute value. Validating your pages
(<URL:http://validator.w3.org/>) will catch mistakes like that.

[snip]
Now I would like to update this values in each box in th e nd of this
page.

How do I do that ?


Your question is somewhat vague, but the FAQ
(<URL:http://jibbering.com/faq/>) and the notes
(<URL:http://www.jibbering.com/faq/faq_notes/faq_notes.html>) cover
accessing form controls and their values.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10540
by: Mark | last post by:
A beginner in this area, I have been able to read a record from a MySQL database and populate an HTML form (wow!). Now, my goal is to allow the user to edit the contents of the form and then...
5
2586
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
5
2138
by: explode | last post by:
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can...
1
5165
by: Selvakumar | last post by:
hai friends, I am new to .net programming. I did the inserting data into MS-access database but i couldn't able to perform the update command. I used only textbox and command button for inserting...
2
2610
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.