Submit a Form to Custom URL in Laravel 4 -
i have simple form allows user enter from_date
, to_date
.lets user enters 2014-09-01
, 2014-09-10
respectively.
how can form submit url ../from_date/2014-09-01/to_date/2014-09-10
you cannot if need this, need submit standard class controller , resubmit using redirection:
public function resubmit() { redirect::to('/from_date/'.input::get('from_date').'/to_date/'.input::get('to_date'))->withinput(); }
but honest don't know why try that. post data static url , display content using dynamic urls pretty urls.
Comments
Post a Comment