php - Laravel: Posting information with a form -


i have in code:

<form class="form-horizontal" role="form" method="post" action="{{url('/member/createmember')}}">     <input type="hidden" name="_method" value="put">     <input type="hidden" name="_token" value="{{ csrf_token() }}">     <input type="hidden" name="invitation" value="{{ $invitation }}">     <input type="hidden" name="partner" value="{{ $partner }}"> 

i have $inviation, , $partner available /member/createmember function in called controller.

is there more elegant way of achieving other hidden input elements? isn't content of hidden fields communicated end user's browser anyway? ideally avoid involving user's browser in this. should retain $partner , $invitation in session?

i can think of 2 options:
hidden fields (what use things this)
session storage (this might bit difficult, since can set them (by echoing js) hard view them (unless js it))

honestly, can't think of else, sorry that! user's browser need involved, since http stateless.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -