Home > Backend Development > PHP Tutorial > How to get the ID in SELECT when deleting?

How to get the ID in SELECT when deleting?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-06 13:51:56
Original
840 people have browsed it

<code>{!! Form::open(array('route'=>array('groupdel',**?????**),'method'=>"delete")) !!} 

 {!! Form::label('group_name','GroupName:') !!}

 {!! Form::select('group_name',$group_name_lists,null) !!}       

 {!! Form::submit('Submit') !!}

 {!! Form::close() !!}
</code>
Copy after login
Copy after login

Excuse me, when deleting, how should I write the question mark? In order to get the ID at the time of deletion

Thank you very much~

Reply content:

<code>{!! Form::open(array('route'=>array('groupdel',**?????**),'method'=>"delete")) !!} 

 {!! Form::label('group_name','GroupName:') !!}

 {!! Form::select('group_name',$group_name_lists,null) !!}       

 {!! Form::submit('Submit') !!}

 {!! Form::close() !!}
</code>
Copy after login
Copy after login

Excuse me, when deleting, how should I write the question mark? In order to get the ID at the time of deletion

Thank you very much~

<code>{!! Form::model($foo, ['route' => ['groupdel', $foo->id], 'method' => 'DELETE']) !!}
试试这个</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template