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

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

PHP & MS Access - Line Break
Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm r

fire away
i launched about 4 months ago as a lagit co. i have 2 paying clients, 1probono, 1 side progect, and

Any help with my email script?
I have an email script, I have not tested it, although someone tested it for me and said it worked f

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Convert Binary String to Decimal
Trying to Get:
Decimal: 305419896

Out of:
Binary String: xV4

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

restricting another login once you logout
Hello,

how can I restrict a page from login authenticating against info in a MySQL DB for a s

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

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