10 months ago

Multiple Form update

Posted 10 months ago by bitcoinboy

I'm looking for a better way to store multiple forms update. E.g: in one page I have multiple forms each one have a hidden input with its type.

<input type="hidden" name="type" value="type_of_form">

Currently I'm handling it like this:

        $type = request('type');

        if ($type === 'basic')

        if ($type === 'legal')

        if ($type === 'address')

        if ($type === 'address')

I think this is simple but too long. Is there any simplest way ?

Please sign in or create an account to participate in this conversation.