mercredi 3 octobre 2018

how can i store a checkbox value in mysql from a controller without having to use "request"

Inside the HTML

". ' ' .'' .$row9['shortCommentSix']. ' ' .'' .$row9['shortCommentSeven'] . ' ' .'' .$row9['shortCommentEight']. ' ' .'' .$row9['shortCommentNine']. ' ' .'' .$row9['shortCommentTen']?>

Inside the controller

public function store(Request $request) {

    result::create([

        'sid' => $request->sid,
        'mark' => $request->mark,
        'mark2' => $request->mark2,
        'textAreaOne' => $request->textAreaOne,
        'textAreaTwo' => $request->textAreaTwo,

        'staffmembers_id' => \Session::get('staffmembers_id'),

    ]);

    return redirect('menupage');
}




Aucun commentaire:

Enregistrer un commentaire