Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
[php help needed] Cloned form entries into a Database
Author Summary
akerendova is in php help needed
Post Body

Hey Everyone,

I have a form on my website where I am cloning parts of the form, then trying to add that information to a database. When the form elements clone, they get a name that increases, for example:

detailsloc[2]

With the [2] changing as more form elements are added. I am not sure how to get the additional elements into the database.

This is an example of how each form field is currently being handled:

if (!empty($detailsloc))
$updates[] = 'detailsloc="'.mysqli_real_escape_string($dbc, $detailsloc).'"';

I know it's not a lot of information, but it's behind a log-in and password, so I can't just point you to the site. Please let me know if you have any advice or need more information.

Thank you!

Author
Account Strength
90%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,328
Link Karma
276
Comment Karma
1,052
Profile updated: 5 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago