TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vince Baker
NA
2
839
MVC Form with Database
Apr 25 2018 9:21 PM
For the life of me, I cannot seem to get my form on my index page to post to my database and then display in a separate page on my website sorted by an input category.
What am I doing wrong?
<
div
class
=
"container"
>
<
div
class
=
"row clearfix"
>
<
div
class
=
"col-md-12 column"
>
<
table
class
=
"table table-bordered table-hover"
id
=
"tab_logic"
>
<
thead
>
<
tr
>
<
th
class
=
"text-center"
>
<
h2
>
Category
</
h2
>
</
th
>
<
th
class
=
"text-center"
>
<
h2
>
Store
</
h2
>
</
th
>
<
th
class
=
"text-center"
>
<
h2
>
Amount
</
h2
>
</
th
>
<
th
class
=
"text-center"
>
<
h2
>
Date
</
h2
>
</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tr
id
=
'addr0'
>
<
td
name
=
'category0'
>
<
select
name
=
"mydropdown"
class
=
"form-control"
>
<
option
value
=
""
>
</
option
>
<
option
value
=
"Tithes"
>
Tithes
</
option
>
<
option
value
=
"Emergency Fund"
>
Emergency Fund
</
option
>
<
option
value
=
"Retirement Fund"
>
Retirement Fund
</
option
>
<
option
value
=
"College Fund"
>
College Fund
</
option
>
<
option
value
=
"Mortgage"
>
Mortgage
</
option
>
<
option
value
=
"Repairs"
>
Repairs
</
option
>
<
option
value
=
"Electricity/Gas"
>
Electricity/Gas
</
option
>
<
option
value
=
"Water"
>
Water
</
option
>
<
option
value
=
"Trash"
>
Trash
</
option
>
<
option
value
=
"Sewer"
>
Sewer
</
option
>
<
option
value
=
"Phone"
>
Phone
</
option
>
<
option
value
=
"Intenet"
>
Intenet
</
option
>
<
option
value
=
"TV"
>
TV
</
option
>
<
option
value
=
"Life Insurance"
>
Life Insurance
</
option
>
<
option
value
=
"Auto Insurance"
>
Auto Insurance
</
option
>
<
option
value
=
"Groceries"
>
Groceries
</
option
>
<
option
value
=
"Restaurants"
>
Restaurants
</
option
>
<
option
value
=
"Clothing"
>
Clothing
</
option
>
<
option
value
=
"Dry Cleaning"
>
Dry Cleaning
</
option
>
<
option
value
=
"Gas & Oil"
>
Gas & Oil
</
option
>
<
option
value
=
"Repairs & Tires"
>
Repairs & Tires
</
option
>
<
option
value
=
"License & Taxes"
>
License & Taxes
</
option
>
<
option
value
=
"Car Replacement"
>
Car Replacement
</
option
>
<
option
value
=
"Medical"
>
Medical
</
option
>
<
option
value
=
"Cosmetics/Hair Care"
>
Cosmetics/Hair Care
</
option
>
<
option
value
=
"Gifts"
>
Gifts
</
option
>
<
option
value
=
"Replacement Furniture"
>
Replacement Furniture
</
option
>
<
option
value
=
"Hunting"
>
Hunting
</
option
>
<
option
value
=
"Pocket Money(His)"
>
Pocket Money (His)
</
option
>
<
option
value
=
"Pocket Money(Hers)"
>
Pocket Money (Hers)
</
option
>
<
option
value
=
"Archie"
>
Archie
</
option
>
<
option
value
=
"Swim Lessons"
>
Swim Lessons
</
option
>
<
option
value
=
"Union Dues"
>
Union Dues
</
option
>
<
option
value
=
"Childcare"
>
Childcare
</
option
>
<
option
value
=
"Entertainment"
>
Entertainment
</
option
>
<
option
value
=
"Vacation"
>
Vacation
</
option
>
<
option
value
=
"Essential Oils"
>
Essential Oils
</
option
>
</
select
>
</
td
>
<
td
name
=
'store0'
>
<
input
type
=
"text"
class
=
"form-control"
/>
</
td
>
<
td
name
=
'amount0'
>
<
input
type
=
"number"
min
=
"0.01"
step
=
"0.01"
class
=
"form-control"
/>
</
td
>
<
td
name
=
'date'
>
<
input
type
=
"date"
class
=
"form-control"
/>
</
td
>
</
tr
>
<
tr
id
=
'addr1'
>
</
tr
>
</
tbody
>
</
table
>
</
div
>
</
div
>
<
a
id
=
"add_row"
class
=
"btn btn-default pull-left"
>
Add Row
</
a
>
<
a
id
=
'delete_row'
class
=
"pull-right btn btn-default"
>
Delete Row
</
a
>
</
div
>
<
div
class
=
"row"
>
<
div
align
=
"center"
>
<
button
onclick
=
"myFunction()"
>
Submit Reviews
</
button
>
</
div
>
</
div
>
This is supposed to post to the following page:
<
div
class
=
"tab"
>
<
button
class
=
"tablinks"
onclick
=
"openCity(event, 'London')"
>
London
</
button
>
<
button
class
=
"tablinks"
onclick
=
"openCity(event, 'Paris')"
>
Paris
</
button
>
<
button
class
=
"tablinks"
onclick
=
"openCity(event, 'Tokyo')"
>
Tokyo
</
button
</
div
>
<
div
id
=
"London"
class
=
"tabcontent"
>
<
h3
>
London
</
h3
>
<
p
>
London is the capital city of England.
</
p
>
</
div
>
<
div
id
=
"Paris"
class
=
"tabcontent"
>
<
h3
>
Paris
</
h3
>
<
p
>
Paris is the capital of France.
</
p
>
</
div
>
<
div
id
=
"Tokyo"
class
=
"tabcontent"
>
<
h3
>
Tokyo
</
h3
>
<
p
>
Tokyo is the capital of Japan.
</
p
>
</
div
>
Reply
Answers (
1
)
Learn Angular 5 from beginning
How to consider the radio buttons as two groups in MVC