Description
form was working i think i have change miner but i don't know what I change after form working stop
View Code
<form method ="post" action="{{ route('posts.store') }}" class="mt-4">
@csrf
<div style="margin-top:20px;">
<lable> Title</lable>
<input type="text" name="title" placeholder="Title" class="form-control" value="{{ old('title') }}">
<div style="margin-top:20px;">
<lable> Description </lable>
<textarea type="text" name="description" class="form-control">{{ old('description') }} </textarea>
<div style="margin-top:20px;">
<lable> Publish </lable>
<select id="" class="form-control" >
<option disabled selected> Choose Option</option>
<option value="1">Yes</option>
<option value="2">No</option>
</select>
<br><br>
<lable> Active </lable>
<select id="" class="form-control" >
<option value="" disabled selected> Choose Option</option>
<option value="1">Yes</option>
<option value="2">No</option>
</select>
<div style="margin-top:20px;">
<lable> </lable>
<input type="text" class="form-control">
<button style="margin-top: 20px;" type="submit" class="btn btn-primary" >Submit</button>
</form>
</div>
</div> <a href="{{ url('/test-1') }}" class="btn btn" style="background-color: red; :hover background-color: yellow;"> GO-1</a>
You have whitespace after the method attribute in the form.
Before
method ="post"
After
method="post"
1 Like 1 Comment
Hadayat Niazi Super Admin
@ali raza did you resolved the issue?
commented 1 year ago