-2

I am currently building a webpage where the user can submit an order and have the ability to add multiple items to the order. Right now I have an order form that has the fields it needs like shipping address and all that. Then I included the item form and closed the form. I can't control the included form anymore.

Here is the form:

@foreach ($errors->all() as $error)
<p class="'error">{{ $error }}</p>
@endforeach
{{ Form::open() }}
<input type="textarea" name="comment" placeholder="Comment" />
<input type="text" name="shippingaddress" placeholder="Shipping Address" />
<input type="text" name="project_id" placeholder="Project Id" />
<input type="text" name="user_id" placeholder="User Id" />
@include ('Partials/Items')
<input type="submit" value="Send Requests" />
{{ Form::close() }}
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • look at this [question's accepted answer](http://stackoverflow.com/questions/555928/is-it-valid-to-have-a-html-form-inside-another-html-form): `"form must not contain other form elements."` – low_rents Jul 31 '14 at 19:39

1 Answers1

5

You can't. Forms cannot be nested.

WinterMute
  • 519
  • 3
  • 9