Can ForeFlight on the web be used in place of ForeFlight Mobile in the cockpit?

No.  ForeFlight on the web is intended to be a pre-flight planning tool only, not a substitute for ForeFlight Mobile. Additionally, ForeFlight on the web requires an active internet connection, meaning that in most cases it will not be accessible in-flight.