php form. Send array to database

已完成 已发布的 Nov 25, 2010 货到付款
已完成 货到付款

I have a form set up for the person in my running club who organises the volunteers.

The form is called [url removed, login to view] and asks for:

stri_event and stri_date which is the name of the event and the date on which that event will occur. These can both be entered as text, and there's no problem with these fields.

Next I have 5 fields in which volunteer roles are to be listed. What I would like is the ability to add a number of fields (similar to the way fields can be added to a table on phpMyAdmin (I've set up the textbox and the "Go" button for this, but haven't added the functionality.

Then when the form is submitted, it is processed by the [url removed, login to view] file.

Basically I'd like whatever volunteer roles are put into the volunteer fields, to go into the database in the vol_role field.

So, if a person added an event called "Race 1" on a date "Monday, 1 Jan, 2011", and had 3 volunteer roles: "Pre-race set up", "Course marshall" and "Post-race pack up", I'd like that sent to the database in 3 rows.

Each of the 3 rows would have "Race 1" in the "stri_event" field and "Monday, 1 Jan, 2011" in the "event_date" field. Row 1 would have "Pre race set up" in the vol_role field; row 2 would have "Course marshall" in the vol_role field, and row 3 would have "Post-race pack up" in this field.

There's also a picture of my database if my explanation isn't good enough.

Cheers,

Dave

## Deliverables

1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).

## Platform

php and mysql

JavaScript MySQL Odd Jobs PHP

项目ID: #3875435

关于项目

40个方案 远程项目 活跃的Nov 26, 2010

授予:

daufenbach

See private message.

$15 USD 在14天内
(17条评论)
3.9

有40名威客正在参与此工作的竞标,均价$52/小时

hits

See private message.

$42.5 USD 在14天内
(870条评论)
8.9
stevebryant

See private message.

$25.5 USD 在14天内
(498条评论)
6.6
wontonesaju

See private message.

$21.25 USD 在14天内
(170条评论)
6.6
shihan033010

See private message.

$25.5 USD 在14天内
(253条评论)
6.5
unimaxsystems

See private message.

$46.75 USD 在14天内
(202条评论)
6.0
XBS

See private message.

$25.5 USD 在14天内
(29条评论)
5.7
priboy

See private message.

$170 USD 在14天内
(10条评论)
5.6
pollardmedia

See private message.

$59.5 USD 在14天内
(57条评论)
5.6
DIBarit

See private message.

$21.25 USD 在14天内
(116条评论)
5.4
cristikkk

See private message.

$68 USD 在14天内
(83条评论)
5.2
robweb2009

See private message.

$17 USD 在14天内
(109条评论)
5.1
maruidea

See private message.

$17 USD 在14天内
(13条评论)
4.7
hrvoje89ri

See private message.

$29.75 USD 在14天内
(13条评论)
4.7
rskusuma

See private message.

$12.75 USD 在14天内
(95条评论)
4.7
alexanderlim

See private message.

$67.15 USD 在14天内
(44条评论)
4.6
bugtisoft

See private message.

$63.75 USD 在14天内
(15条评论)
4.2
bestflancer

See private message.

$8.5 USD 在14天内
(13条评论)
4.1
mkordasz

See private message.

$8.5 USD 在14天内
(7条评论)
3.6
aussiedavevw

See private message.

$82.45 USD 在14天内
(5条评论)
3.6
anton164

See private message.

$42.5 USD 在14天内
(7条评论)
3.4