473,399 Members | 2,478 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,399 software developers and data experts.

HELP!! Not sure how to process this form

I want to have a form which has several rows for example

username1 firstname1 surname1
username2 firstname2 surname2
username3 firstname3 surname3
username4 firstname4 surname4

What I want to do is when this data is typed into the form to save it
in a MYSQL db. The problem isn't with the saving, it's with the form
itself. What is the best way to process this?

I can't really name the various fields "username1" and "username2"
because I would then need to replicate these as variables and this form
generated could have an number of rows so hard coding the form field
names with numbers makes it hard. Is there any way I can do this?? How
have other people tackled this sort of thing in the past?
Jul 16 '05 #1
3 1870
"Peter" <uc*************@chatomatic.net> wrote in message
news:280720032028327409%uc*************@chatomatic .net...
| I want to have a form which has several rows for example
|
| username1 firstname1 surname1
| username2 firstname2 surname2
| username3 firstname3 surname3
| username4 firstname4 surname4
|
| What I want to do is when this data is typed into the form to save it
| in a MYSQL db. The problem isn't with the saving, it's with the form
| itself. What is the best way to process this?
|
| I can't really name the various fields "username1" and "username2"
| because I would then need to replicate these as variables and this form
| generated could have an number of rows so hard coding the form field
| names with numbers makes it hard. Is there any way I can do this?? How
| have other people tackled this sort of thing in the past?

form fields are:
username[]
firstname[]
surname[]

result is then an array

process with a loop to using count(username)
Jul 16 '05 #2

"Peter" <uc*************@chatomatic.net> wrote in message
news:280720032054089545%uc*************@chatomatic .net...
| In article <bg**********@newsg2.svr.pol.co.uk>, NoHeadRequired
| <in**@NoHeadRequired.SPAM.tk> wrote:
|
| > "Peter" <uc*************@chatomatic.net> wrote in message
| > news:280720032028327409%uc*************@chatomatic .net...
| > | I want to have a form which has several rows for example
| > |
| > | username1 firstname1 surname1
| > | username2 firstname2 surname2
| > | username3 firstname3 surname3
| > | username4 firstname4 surname4
| > |
| > | What I want to do is when this data is typed into the form to save it
| > | in a MYSQL db. The problem isn't with the saving, it's with the form
| > | itself. What is the best way to process this?
| > |
| > | I can't really name the various fields "username1" and "username2"
| > | because I would then need to replicate these as variables and this
form
| > | generated could have an number of rows so hard coding the form field
| > | names with numbers makes it hard. Is there any way I can do this?? How
| > | have other people tackled this sort of thing in the past?
| >
| > form fields are:
| > username[]
| > firstname[]
| > surname[]
| >
| > result is then an array
| >
| > process with a loop to using count(username)
|
| so for example
| <input type=text value=username[]>
|
| or
|
| <input type=text value=username[1]>
|
| cheers
<input type=text name=username[]>

Jul 16 '05 #3
In article <bg**********@newsg1.svr.pol.co.uk>, NoHeadRequired
<in**@NoHeadRequired.SPAM.tk> wrote:
<input type=text name=username[]>


cheers,

You've been a great help.
Jul 16 '05 #4

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

Similar topics

2
by: david | last post by:
I am calling a dll in my C# project, when I try to access its log file, I got error " The process cannot access the file "xxxxxxx" because it is being used by another process. ". I suspect the...
10
by: Sens Fan Happy In OH | last post by:
Tried to post this yesterday but it appears that my news server at work decided not to send it through for whatever reason. So I'll try from Google. So I apologize if this becomes a re-post: ...
3
by: Jim Evans | last post by:
Using code and suggestions from an earkier thread in this group, I have created the following cond for the open event of a form I am opening from the button click event of another form. ...
4
by: morgan.mark | last post by:
I am not an expert at access and I need a little help with a form. I have a form that is linked to a table with address information. My form has a checkbox linked to a field in the database to show...
1
by: Joe | last post by:
Hi, I have a form and when user submits the form I would like start downloading the file as if user clicked on a hyperlink and also refresh the form. Four things I am trying to accomplish when a...
5
by: mouac01 | last post by:
I'm new to PHP/Javascript. I have a simple form I want to validate the fields with javascript and then run the PHP script. All the scripts are in one page. I want PHP to control where the next...
4
by: zihuz86 | last post by:
I need help on php form processing for example : Menu no. : list_menu1 Menu name : list_menu2 Table : Menu
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
2
by: acauchi | last post by:
I have a form with a subform with it. Each time I update a record in the form i note changes in the subform.How can I prohibit user from submitting changes to form if subform is not filled in. Want...
4
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I've been working on this program for quite a while, and I'm pleased with how it's turned out. I've released several versions, improving on the base concept every time, but I think things are...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.