Inserting multiple records from single form


Posted on 16th Feb 2014 07:03 pm by admin

I've found a number of threads that deal with this issue, but I'm new to php and coding language so I don't quite understand what they're talking about or what the code means.
Here's the situation: I have a form with 4 rows and the user will enter a unique record into each row. I would like each row to be entered into the database, but if the row is left empty then I obviously do not want an empty record entered into the database.

I've thought about each input being numbered (1name, 2name, 3name, 4name; 1 address, 2address...)
Did you know?Explore Trending and Topic pages for more stories like this.
But in the threads I searched I came across things like array, mysql_fetch, and isset that might be helpful. I'm looking into what they do to see if they could help.

I will post some code once I get a nudge in the right direction.
No comments posted yet

Your Answer:

Login to answer
346 Like 11 Dislike
Previous forums Next forums
Other forums

Typedef struct vs just struct
Anyone know the rationale for using typedef for structs when a struct is itself a typedef? I have s

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

exclude characters from counting?
Hello, I wanted to ask if you have a string like:
Code: $my_s='ASRGREGTGTR----REGREGRE+++RRRRRR..

How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in

add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php

Login Control?!
I have a Web Site that uses the login control also I have set the destinationurl to the page I want

Include with Parameters
In a particular page I would like to include a file that requires $_GET parameters.

when I go

I apologise! It's a newbie to PHP feedback form problem!
Hi,

I am a total newbie to PHP. I am also a unemployed and need to get a job. So after 100% r

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

Help with PHP and checkboxes
I am posting this for a friend of mine, i wrote a small script for her to process her form data to a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash