473,698 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1878
"Peter" <uc************ *@chatomatic.ne t> wrote in message
news:2807200320 28327409%uc**** *********@chato matic.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.ne t> wrote in message
news:2807200320 54089545%uc**** *********@chato matic.net...
| In article <bg**********@n ewsg2.svr.pol.c o.uk>, NoHeadRequired
| <in**@NoHeadReq uired.SPAM.tk> wrote:
|
| > "Peter" <uc************ *@chatomatic.ne t> wrote in message
| > news:2807200320 28327409%uc**** *********@chato matic.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**********@n ewsg1.svr.pol.c o.uk>, NoHeadRequired
<in**@NoHeadReq uired.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
303
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 dll doesn't close its log file immediately, but I can not do nothing about it. Since I can open the log file in File explorer(when I tried to delete it, I got a file share violation, that is for sure), I think I could open and read the file in my...
10
2529
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: I've created a form for mailing back (via e-mail) to my company but can't figure out what CGI codes are needed to make it do this. The last time I created a form similar to this for another company I worked for, the web hosting company did all...
3
2021
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. Private Sub Form_Open(Cancel As Integer) If Len(Me.OpenArgs & "") > 0 Then Dim i As Integer Dim s As String
4
1469
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 when an address has been gone through and confirmed. I would like to have a box on the form that shows how many records have been checked and have "-1" in the table. I don't know how to do this and I asked a consultant that helps me from time to...
1
918
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 user submits the by clicking on the Submit button. (1) Process the form by inserting the entered info in the database, (2) Send Email, (3) Starts a download as if user clicked on a hyperlink, (4) Reload the form.
5
2329
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 page is. It works fine without the javascript but when I add the javascript the page doesn't do anything besides the validation. Thanks for your help... Chong ----login.html-------------------------------- <?php ob_start();
4
1697
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
8010
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 ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not help.
2
1382
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 to make sure that user does not forget to make annotation in the subform. thanks
4
1592
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 starting to get a little too heavy and odd things are happening. Basically, I've got a main form with a child form. The child form is nothing more than a single-pixel border with a handle in each corner, at each edge (centered to that edge) and in the...
0
8675
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3050
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 we have to send another system
3
2002
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.