473,385 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1305
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.