Greatone
Greatone

Reputation: 243

form goes out of control when adding action="" in laravel

im trying to buld a complate form using laravel but i cant make this right :

<form class="form-horizontal">
<fieldset>

      {{Form::open(array('url'=>'register'))}}

but clearly this does not do anything with my data base so i want this :

<form  class="form-horizontal" action={{ url('our/target/route') }}" method="post">

but when i do this my form is not horizontal anymore and becomes something un watchable

so what is the problem ?

Upvotes: 0

Views: 36

Answers (1)

lukasgeiter
lukasgeiter

Reputation: 152910

Now you have two <form>

Try this:

{{ Form::open(array('url' => 'register', 'class' => 'form-horizontal')) }}
    <fieldset>

Upvotes: 3

Related Questions